Question

im wrecking my head over skrollr issue since last 3 days and some idiot thought that its a marketing gimmick I want to stop the skrollr plugin when i scroll upto the bottom. while scrolling up it should not do anything. I mean it should not reverse the animation

this is my fiddle

http://jsfiddle.net/eq3u9/1/

<div style="height:600px; background-color:#960" data-0="opacity:0;" data-100="opacity:1;">scroll down</div>

Just to know I have integrated waypoint js also into this project

Was it helpful?

Solution 2

skrollr.init({
    beforerender: function(data) {
        return data.direction == 'down';
    }
});

OTHER TIPS

skrollr.init({
    beforerender: function(data) {
        return data.curTop > data.lastTop;
    }
});

http://jsfiddle.net/eq3u9/2/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top