How to achieve jQuery scrolling/overlay effect (video in description)

Posted by waffl on Stack Overflow See other posts from Stack Overflow or by waffl
Published on 2012-11-29T22:40:56Z Indexed on 2012/11/29 23:04 UTC
Read the original article Hit count: 122

Filed under:
|
|
|

I have two columns.

The left column contains text of dynamic lengths.

The right column is of fixed height and will contain a set of images selected at random per page load.

I am trying to create an effect where while the user scrolls, the Image 2 scrolls above Image 1. When it reaches the top, the Image 1 begins to scroll up until it disappears, then Image 3 comes in and repeats the process.

As this is rather confusing, I made a short video describing the desired effect.

Video - MP4

I have begun trying to get it working in this jsbin but am at a loss for when the user scrolls back down and also when more images are required. I am thinking my current path is not the right direction. I'm thinking that employing something like jQuery waypoints is more the direction I should be pursuing?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery