is-in-view
v1.0.1
Published
tiny function to check if a given element is in the current viewport
Downloads
10
Readme
is-in-view
tiny function to check if a given element is in the current viewport
Getting Started
Install it via npm:
npm install is-in-view
And include in your project:
import isInView from 'is-in-view';
isInView(element) // -> true/false
License
MIT