jquery - Manipulating the page scroll -


i want able move user between div elements depending on if user scrolled or down (to see effect, checkout )

my initial code is;

var lastscrolltop = 0; $(window).scroll(function(event){     var st = $(this).scrolltop();     if (st > lastscrolltop){         $('html, body').animate({ scrolltop: 1000 }, 'slow');         return false;     } else {         $('html, body').animate({ scrolltop: 0 }, 'slow');         return false;     }     lastscrolltop = st;     return false; }); 

i have yet put in code move next sequential div, problem have once scroll or down has been triggered can't escape capture next scroll event.

any breaking out of event appreciated.


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

java - What is the difference between String. and String.this. ? -