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