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");
});
forked from akinuri/scroll
-
Notifications
You must be signed in to change notification settings - Fork 0
Listens to scroll events: start, scroll, and end.
License
mohammadkarbalaee/scroll
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Listens to scroll events: start, scroll, and end.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- HTML 78.4%
- JavaScript 21.6%