within-view (npm): 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.
Keywords: preact|react|hooks|preact-hooks|react-hooks|scroll|scroll-position|scroll-direction|scroll-event-listener|dom-listener|element-in-view|element-in-sight|within-view|within-sight|element-within-view|element-within-sight