The following blog of okcupid had this interesting feature that shows a "share this" window only when you reach the end of the post:


How is it possible to do this?


  • Great question but nothing to do with WordPress. – Chris_O Apr 28 '11 at 6:10
  • Well, I wish to do it with WP :) – Tal Galili Apr 28 '11 at 14:10

They've attached a function to the scroll event of the page, it looks at the scroll position of the document relative to its height to detect when you've reached the bottom, in which case they animate the flyout div.

jQuery has some easy methods for this: $(document).height();, $(document).scrollTop();

edit: these may help one two

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.