scroll-handler
Version:
Smooth scroll handler
25 lines (21 loc) • 389 B
Markdown
Smooth scroll handler
Use npm to install just run
```bash
npm install scroll-handler
```
```javascript
var sh = require('scroll-handler');
sh({
// Execute on start scrolling
start: function(e, top) {
console.log('Event', e, 'Scroll top', top);
},
// Execute on stop scrolling
stop: ...
// Execute periodicaly
interval: ...
});
```