@hemanth/scroll-precent

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @hemanth/scroll-precent

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hemanth