scroll-handler

0.1.0 • Public • Published

scroll-handler

Smooth scroll handler

Install

Use npm to install just run

npm install scroll-handler

Usage

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: ...
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i scroll-handler

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dmitrykuzmenkov