$ npm install @hemanth/scroll-precentGet percentage of scroll.
$ npm install --save @hemanth/scroll-precent
const scrollPrecent = require('@hemanth/scroll-precent');
document.addEventListener('scroll', () => {
console.log(scrollPrecent()); //0-100
});
MIT © Hemanth.HM