I'm using Nicescroll and want to bind to a scroll event of the div the nicescroll-plugin is defined on.
Somehting like:
$("#sec_menu").niceScroll();
$("#sec_menu").scroll(function(e){ //do stuff here });
However the above doesn't work. Which event (perhaps a custom event defined by nicescroll) can I bind to that is fired on scrolling? I can't seem to find anything in the docs.
Thanks
You can use the custom event only :
$("#id").niceScroll().scrollstart(function(info){
//do something here
})
// or
$("#id").niceScroll().scrollend(function(info){
//do something here
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With