lb-onvisible
Adds classNames to the elements when they are visible.
Adds classNames to the elements when they are visible.
A React hook to detect if an HTML Element has been display in the viewport. This is easy to use. You just have to provide an react ref. By default it freeze the value when the element has been display. That is nice to triggered one time animation !