Hook to check if an element is visible in the viewport.
The reference to the element.
A boolean indicating if the element is visible.
Hook to check if an element is visible in the viewport.