React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport.
react
hooks
hook
performance
monitor
scrolling
visibility
viewport
lazy-loading
intersection-observer
intersectionobserver
intersectionobserver-api
-
Updated
Jun 26, 2021 - TypeScript
Animations can easily be reversed for cleanup using state to set the value of a reverse prop and is already implemented but it is not stated in documentation even though it works.
Example: