@custom-react-hooks/use-on-screen
MITThe `useOnScreen` hook utilizes the Intersection Observer API to detect if an element is visible within the viewport. It's ideal for scenarios such as lazy loading images, triggering animations on scroll, and implementing features like infinite scroll.
95
Security score
0 known advisories in v1.5.1
Weekly downloads
—
Unpacked size
7.3 kB
Dependencies
0
Last publish
1 year ago
Security advisories
No known vulnerabilities affect v1.5.1.