Skip to content

hemanth/scroll-percent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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