Skip to content

Listens to scroll events: start, scroll, and end.

License

Notifications You must be signed in to change notification settings

mohammadkarbalaee/scroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scroll.js

var sl = new Scroll(200); // after 200 ms of inactivity, "end" event will fire; default = 150

sl.addEventListener("start", function (e) {
    console.log("started", e);
});

sl.addEventListener("scroll", function () {
    console.log("scrolling");
});

sl.addEventListener("end", function () {
    console.log("ended");
});

About

Listens to scroll events: start, scroll, and end.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 78.4%
  • JavaScript 21.6%