Skip to content

dev-labs-bg/delayed-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

jQuery Delayed Scroll

Utility helper for attaching events when user scrolls.

Usage:

/**
 * Callback function that you want to trigger,
 * when user scrolls the page.
 * @param {int} scrollTop - plugin returns current page scroll top
 */
function somethingHappeningOnScroll(scrollTop){
    // Do something cool.
}

// Attach event simply by passing your function
DelayedScroll.attach(somethingHappeningOnScroll);

// ... and detach it by passing the same function again
DelayedScroll.detach(closeOnScroll);

More docs coming soon!

About

jQuery delayed scroll made utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published