scroll-trigger
Version:
simple scroll trigger function with throttle
19 lines (13 loc) • 384 B
Markdown
var scrollTrigger = require('scroll-trigger');
/**
* 1000 milliseconds wait for execute next scroll action
* 200 tolerance for execute function
*/
scrollTrigger(1000, 200, function() {
console.log('user scroll');
});
[ ](http://api.jquery.com/scroll/)
[ ](http://underscorejs.org/#throttle)