# intersection_observer_lazy

> ```shell npm install intersection_observer_lazy --save-dev or yarn add intersection_observer_lazy ```

Latest version **1.0.1** (published 2020-03-20) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-03-20 |
| First published | 2020-03-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | _zzx |

## Links

- npm: https://www.npmjs.com/package/intersection_observer_lazy
- Repository: https://github.com/OneVicetone/lazyLoad.js
- Homepage: https://github.com/OneVicetone/lazyLoad.js#readme
- Issues: https://github.com/OneVicetone/lazyLoad.js/issues
- npm.io page: https://npm.io/package/intersection_observer_lazy

## Recent versions

- 1.0.1 (latest) — 2020-03-20
- 1.0.0 — 2020-03-20

## README

```shell
npm install intersection_observer_lazy --save-dev
or
yarn add intersection_observer_lazy
```



### Usage

``` html
<div class="box">
        <img data-src="https://loading.io/s/icon/v2s9uy.svg" alt="" class="lazy-load-1" />
        <img data-src="https://loading.io/s/icon/vpsr2a.svg" alt="" class="lazy-load-2" />
        <img data-src="https://loading.io/s/icon/wg9ezt.svg" alt="" class="lazy-load-3" />
        <img data-src="https://loading.io/s/icon/se7g9z.svg" alt="" class="lazy-load-4" />
        <img data-src="https://loading.io/s/icon/ckfhuq.svg" alt="" class="lazy-load-5" />
        <img data-src="https://loading.io/s/icon/uveui4.svg" alt="" class="lazy-load-6" />
        <img data-src="https://loading.io/s/icon/t4zd3i.svg" alt="" class="lazy-load-7" />
        <img data-src="https://loading.io/s/icon/j3sdt0.svg" alt="" class="lazy-load-8" />
        <img data-src="https://loading.io/s/icon/5sq5z0.svg" alt="" class="lazy-load-9" />
</div>
```



```javascript
import LazyLoad from 'intersection_observer_lazy'
const lazyLoad = new LazyLoad({
            el: ".box",
            aniTime: 2,
            threshold: 0.2,
        })
```



### Preview

![8cC8KI.gif](https://s1.ax1x.com/2020/03/20/8cC8KI.gif)

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