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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -