1.0.1 • Published 4 years ago

scroll-percentager v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

scroll-percentager

This library is for calculating percentage of scrolls in the specified area.

How to install

npm install scroll-percentager

How to use

Please import bind like below code.

import { bind } from 'scroll-percentager'

You pass ID of the Element which is scrollable area as 1st param. After that, you can get percantage of scrolls in the area by using getCurrentPercentage().

License

MIT