use-window-scroll
Tracks window scroll position
Source
Docs
Package
Usage
use-window-scroll
returns current scroll position and a function to scroll smoothly to given position:
Scroll position x: 0, y: 2251
Tracks window scroll position
Source
Docs
Package
use-window-scroll
returns current scroll position and a function to scroll smoothly to given position:
Scroll position x: 0, y: 2251