Author: | vaneenige |
---|---|
Views Total: | 740 views |
Official Page: | Go to website |
Last Update: | January 12, 2019 |
License: | MIT |
Preview:

Description:
Update On Scroll is a scroll position listener which detects the current scroll position and/or progress and triggers certain functions as you scroll down or up the page.
How to use it:
Install the package.
# NPM $ npm install uos --save
Import the UOS from the package.
import uos from './src/index.js';
Execute functions when you scrolled the page to a specific point.
uos(500, 1200, progress => { // 500px - 1200px }); uos(0.3, 0.8, progress => { // 30% - 80% });