scroll-direction-next-react
v0.0.10
Published
Get user's scroll direction.
Downloads
4
Readme
useScrollDirection
Would you like to render React component depending on user's scroll direction?
This hook is totally for you.
Installation
npm install --save scroll-direction-next-react
Usage
import useScrollDirection from 'scroll-direction-next-react'
const scrollDirection = useScrollDirection(100)
You need to specify debounce time in ms default: 100ms
LICENSE
MIT