javascript - Method of Achieving sliding images effect on window scroll -
i attempting recreate similar pencil effect on: http://www.fiftythree.com/pencil
not similar. halfway down current page, pencil sort of pulls apart description on each part user scrolls down window.
i attempting use jquery .animate function pull multiple div's apart in same fashion.
ie: (image1) behind (image2) behind (image3).
sort of vertical accordion effect. basing off scrolltop variable. , @ points move div's in different fashion. events contained in loop.
$(window).scroll(function (event) { var scroll = $(window).scrolltop(); // doing stuff } my issue scrolling function not executing fast enough. if scroll works, if scroll sort of tries play catch , either off location or jerky.
do think decent way achieve effect, , if - suggestions on setting refresh time check user has scrolled on page?
Comments
Post a Comment