within-view

within-view uses preact/react hook to detect scroll event changes and checking if the wanted element(s) is within view and appending a class to the element if desired.
v1.0.1 URL: https://unpkg.com/within-view@1.0.1/src/index.js
OpenBrowse Files
preactreacthookspreact-hooksreact-hooksscrollscroll-positionscroll-directionscroll-event-listenerdom-listenerelement-in-viewelement-in-sightwithin-viewwithin-sightelement-within-viewelement-within-sight