Intersection
Updated on September 7, 2024Source codeTests
useIntersection
is an extension that tracks whether or not an element has entered a viewport.
Under the hood, useIntersection
uses the IntersectionObserver
API for performant intersection tracking.
Example
Scroll to bring the element into view:
Status: invisible