paint-brush
Monitoring An Element As It Enters Or Leaves the Viewport Efficiently in Reactby@welly
1,138 reads
1,138 reads

Monitoring An Element As It Enters Or Leaves the Viewport Efficiently in React

by welly7mMay 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Recently, I released the react-cool-inview, it's a React hook that monitors an element enters or leaves the viewport (or another element) with performant and efficient way, using Intersection Observer. It's lightweight and super flexible, which can cover all the cases that you need, like lazy-loading images and videos, infinite scrolling web app, triggering animations, tracking impressions, and more. Try it you will 👍🏻 it!

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Monitoring An Element As It Enters Or Leaves the Viewport Efficiently in React
welly HackerNoon profile picture
welly

welly

@welly

Code x Design ✨

About @welly
LEARN MORE ABOUT @WELLY'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

welly HackerNoon profile picture
welly@welly
Code x Design ✨

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite