Executing a jQuery function depending on scrollbar position -


i creating simple webpage animates user scrolls down. example, click here.

obviously, know superscrollorama exists. looks have fantastic features, yet it's still rather confusing novice jquery user myself.

so keep simple stuff. here code have made sliding in div. code works on page load, , couldn't find how execute function when element comes in browser viewport.

$(document).ready(function() {     $('.slide').slidedown('slow'); }); 

how can animation occur when element scrolled to? can reverse animation once element once again out of view? better go figure out scrollorama deal this?


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -