Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Tiny function to check if a given element is in the current viewport.

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