I have 2 full div heights. When you scroll down a page, one div scrolls up and the other scrolls in the opposite direction. This works great.
I try to keep this effect, but put normal full-width content under it, trying to keep the natural scroll. So I would like to keep the alternative scroll effect, but when I get to the bottom of the last div that uses this effect, I would like to continue scrolling in normal mode to see the normal content under it.
Here is my jsFiddle, currently it is floating over the effect I am referring to: http://jsfiddle.net/u9apC/116/ , and JS is inserted below for reference:
(function ($) { var top = 0; $(document).ready(function () { var contentHeight = $('.right').height(), contents = $('.right > .content').length; top = (0 - (contentHeight * (contents - 1))); $('.right').css('top', top + 'px'); }); $(window).resize(function () { var contentHeight = $('.right').height(), contents = $('.right > .content').length; top = (0 - (contentHeight * (contents - 1))); $('.right').css('top', (top + $(window).scrollTop()) + 'px'); }); $(window).scroll(function () { $('.right').css('top', (top + $(window).scrollTop()) + 'px'); }); })(jQuery);
EDIT
Here is an illustration of what I want:

javascript jquery html css
egr103
source share