Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Fade-In with Scroll Event Re: Fade-In with Scroll Event

#87138
clokey2k
Participant

I tried to recreate Mashables ‘next page’ widget, where a message would scroll in when you reach the bottom of the article.

I use jQuery to find the offset of the target (an element after the article). Every time the ‘$(window).scroll()’ event is fired compare the values between my offset and the window ‘scrolltop()’. There are a few notes about fluid layouts and accounting for window height but the shell is there.

Maybe that could help?
http://clokey2k.com/blog/2011/09/08-mashables-cool-next-post-widget/