Skip to content
zenui/react-hooks

useScroll

Track the scroll position and the direction of the last scroll, for the window or a scrollable element. Use it for reading progress bars and headers that hide on scroll.

Level
Intermediate
Since
v1.0.0
import {useScroll} from '@zenuilabs/react-hooks';
Loading demo_

More in Events & DOM