I am developing a website and need to trigger a function when the webpage is not scrolling.
Something like:
$("window").notscroll(function() {
//stuffhere
});
Answer can be in either javascript or jQuery.
Hopefully this is possible!
I am developing a website and need to trigger a function when the webpage is not scrolling.
Something like:
$("window").notscroll(function() {
//stuffhere
});
Answer can be in either javascript or jQuery.
Hopefully this is possible!
Not sure what are you trying to achieve but you can use JQuery Debounce to detect when the user stopped scrolling. Combine this when document first loads if you also need to change css on document load.
$(window).scroll($.debounce( 250, true, function(){
$('#scrollMsg').html('It is SCROLLING.');
}));
$(window).scroll($.debounce( 250, function(){
$('#scrollMsg').html('DONE SCROLLING!');
}));