smart-scroll

0.0.6 • Public • Published

smart-scroll

Detects user vs programmatic scrolling

How to install

  1. run npm i smart-scroll
  2. add require('smart-scroll') to your src

or

  1. import dist file via html <script src="${'path to project'}/dist/smart-scroll.js"></script>
    • requires jQuery be loaded prior

How to use

$(window).botScroll(function(){
    // bot scroll events only
});

$(window).userScroll(function(){
    // user scroll events only
});

Package Sidebar

Install

npm i smart-scroll

Weekly Downloads

5

Version

0.0.6

License

ISC

Last publish

Collaborators

  • khalidhoffman