is-in-view

1.0.1 • Public • Published

is-in-view

Downloads Downloads npm version dependencies dev dependencies License

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

Readme

Keywords

Package Sidebar

Install

npm i is-in-view

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • frederik_bosch