use-scroll-event
v0.0.19
Published
A scroll event hook for React that tracks page position and detects active scrolling.
Downloads
16
Readme
use-scroll-event
A scroll event hook for React that tracks page position and detects active scrolling.
Installation Instructions
$ yarn add use-scroll-eventExample
import { useScrollEvent } from "use-scroll-event";
function App() {
// detectScrolling: optional for scrolling detection - optimization
const { scrolling, x, y } = useScrollEvent({ detectScrolling: true });
}