jquery - Is there a way to determine how many scrolls have been made on a window? -
in relation post.
is there way determine number of scrolls made before executing action on jquery? currently, want happen instead of click event, scroll event trigger on nth number of scroll (say, third scroll event). there way this?
thanks!
hope meant..
var = 0; $( window ).scroll(function() { i++; alert(i); if(i == 3){ //your code }
});
Comments
Post a Comment