UNPKG

use-element-on-screen

Version:

`use-element-on-screen` is a React hook that tracks the visibility of an element within the viewport. It uses the Intersection Observer API to detect when an element enters or leaves the screen, enabling you to trigger animations, lazy loading, or other a

1 folder, 3 files
515 kB
1.16 kB
6.19 kB
2.78 kB