@custom-react-hooks/use-on-screen
The `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.
Ecosystem
npmjs.org
npmjs.org
Latest Release
over 1 year ago
1.5.1
over 1 year ago
Versions
8
8
Downloads
1,367 last month
1,367 last month
Dependent Packages
1
1
Loading...
Readme
Loading...
Links
| Registry | npmjs.org |
| Source | Repository |
| Homepage | Homepage |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:npm/%40custom-react-hooks/use-on-screen
spec |
| License | MIT |
| Namespace | custom-react-hooks |
| First Release | over 2 years ago |
| Last Synced | about 12 hours ago |
Repository
| Stars | 28 on GitHub |
| Forks | 1 on GitHub |