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
Post a Comment