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