Skip to content

khalidhoffman/smart-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

detects user vs programmatic scrolling

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published