# ayzee

> Minimalistic IntersectionObserver wrapper

Latest version **0.1.1** (published 2018-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ayzee
pnpm add ayzee
yarn add ayzee
bun add ayzee
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-11-10 |
| First published | 2018-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 154 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sebastian Brockly |
| Maintainers | brook3456 |

## Links

- npm: https://www.npmjs.com/package/ayzee
- Repository: https://github.com/SebastianBrockly/ayzee
- Homepage: http://www.sebastianbrockly.de
- Issues: https://github.com/SebastianBrockly/ayzee/issues
- npm.io page: https://npm.io/package/ayzee

## Recent versions

- 0.1.1 (latest) — 2018-11-10
- 0.1.0 — 2018-11-10
- 0.0.2 — 2018-11-10
- 0.0.1 — 2018-11-10

## README

# ayzee.js

A minimal API wrapper for IntersectionObserver. Listen to enter and exit events of DOM-elements.

## Installation

Download the [latest release](https://unpkg.com/ayzee/lib/ayzee.min.js) or install via [npm](http://npmjs.com/package/ayzee):

```sh
npm install --save ayzee
```
---

## Getting started

```javascript
import ayzee from 'ayzee'

const ay = ayzee()

// Register DOM-element to ayzee registry
const observerdElement = ay(document.querySelector('.yourElement'))

// Add listener to observed element
const handleEnter = (el) => console.log(`${el} entered viewport`)
observedElement.on('enter', handleEnter)

const handleLeave = (el) => console.log(`${el} left viewport`)
observedElement.on('exit', handleLeave)

// Remove listener to observed element ...
observedElement.off('enter', handleEnter)
```

## API
...

---
_Source: https://npm.io/package/ayzee · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
