vpi-observer

Detect intersection between DOM elements and viewport using IntersectionObserver API

react-css-sizes

Package to include in your react app. This sets css variables (--app-height and --app-width) to the inner height and width of the window to get accurate readings of the viewport.