# aniscroll

> Play an animation when whell scrolls.

Latest version **1.0.3** (published 2021-12-25) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2021-12-25 |
| First published | 2021-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kamome |
| Maintainers | kam0me |
| Keywords | scroll, animation |

## Links

- npm: https://www.npmjs.com/package/aniscroll
- Repository: https://github.com/MakinoharaShoko/AniScroll
- Homepage: https://github.com/MakinoharaShoko/AniScroll#readme
- Issues: https://github.com/MakinoharaShoko/AniScroll/issues
- npm.io page: https://npm.io/package/aniscroll

## Alternatives

- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads
- [react-scroll-snap-anime-slider](https://npm.io/package/react-scroll-snap-anime-slider.md) — 214 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-12-25
- 1.0.2 — 2021-12-25
- 1.0.1 — 2021-12-25
- 1.0.0 — 2021-12-24

## README

# AniScroll
 Play an animation when whell scrolls.

在滚动滚轮时让元素滑动

## 使用方法

```js
let ani = new AniScroll();
ani.init(500);//动画的间隔是500ms
ani.addElementController('testElement1', 0, 0.7,()=>{console.log('出现了')});
//   参数：
//1  选择的元素id，
//2  开始播放动画时已经移动的滚轮距离（0意为一移动滚轮就开始），
//3  移速
//4  元素出现时的回调函数
```

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