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

Written by welly | Published 2020/05/10
Tech Story Tags: react | javascript | programming | web-development | open-source | latest-tech-stories | react-top-story | react-hook

TLDRRecently, 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!via the TL;DR App

no story

Written by welly | Code x Design ✨
Published by HackerNoon on 2020/05/10