Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fbosch/is-in-view
Tiny function to check if a given element is in the current viewport.
https://github.com/fbosch/is-in-view
Last synced: 3 months ago
JSON representation
Tiny function to check if a given element is in the current viewport.
- Host: GitHub
- URL: https://github.com/fbosch/is-in-view
- Owner: fbosch
- License: mit
- Created: 2017-04-12T13:12:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-30T20:34:32.000Z (over 2 years ago)
- Last Synced: 2024-07-19T20:46:01.953Z (4 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/is-in-view
- Size: 21.5 KB
- Stars: 10
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-in-view
![Downloads](https://img.shields.io/npm/dm/is-in-view.svg)
![Downloads](https://img.shields.io/npm/dt/is-in-view.svg)
![npm version](https://img.shields.io/npm/v/is-in-view.svg)
![License](https://img.shields.io/npm/l/is-in-view.svg)tiny function to check if a given element is in the current viewport
## Getting Started
Install it via npm:
```shell
npm install is-in-view
```And include in your project:
```javascript
import isInView from 'is-in-view';isInView(element) // -> true/false
```## License
MIT