in-view.js is a lightweight (~1.9kb gzipped), dependency-free, JavaScript utility to detect when a DOM element enters or exits the viewport. It is also available as npm package.
in-view: A JS utility to detect elements inside the viewport
Code
![in-view: A JS utility to detect elements inside the viewport](https://freebiesbug.com/wp-content/uploads/2016/08/in-view-js-plugin-02-580x435.png)
in-view.js is a lightweight (~1.9kb gzipped), dependency-free, JavaScript utility to detect when a DOM element enters or exits the viewport. It is also available as npm package.