Custom React hook that creates an Intersection Observer to monitor the visibility
of a specified element in relation to the viewport or a specified root element.
When the observed element intersects with the specified threshold, the provided
onEntry callback is triggered.
Custom React hook that creates an Intersection Observer to monitor the visibility of a specified element in relation to the viewport or a specified root element.
When the observed element intersects with the specified threshold, the provided
onEntry
callback is triggered.Example