1.0.0 • Published 7 years ago
scroll-precent v1.0.0
scroll-precent
Get percentage of scroll.
Install
$ npm install --save scroll-precent
Usage
const scrollPrecent = require('scroll-precent');
document.addEventListener('scroll', () => {
console.log(scrollPrecent()); //0-100
});
License
MIT © Hemanth.HM
1.0.0
7 years ago