# ease-tweening

> a light lib of tweening

Latest version **0.1.1** (published 2020-06-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install ease-tweening
pnpm add ease-tweening
yarn add ease-tweening
bun add ease-tweening
```

## 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 | 2020-06-09 |
| First published | 2020-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 153.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | benjs |

## Links

- npm: https://www.npmjs.com/package/ease-tweening
- Repository: https://github.com/niuben/ease-tweening
- Homepage: https://github.com/niuben/ease-tweening#readme
- Issues: https://github.com/niuben/ease-tweening/issues
- npm.io page: https://npm.io/package/ease-tweening

## Dependencies (1)

- [tween-functions](https://npm.io/package/tween-functions.md) ^1.2.0

## Recent versions

- 0.1.1 (latest) — 2020-06-09
- 0.1.0 — 2020-06-09
- 0.0.8 — 2020-05-29
- 0.0.7 — 2020-05-18
- 0.0.5 — 2020-04-23
- 0.0.4 — 2020-04-23
- 0.0.3 — 2020-04-23
- 0.0.2 — 2020-04-23
- 0.0.1 — 2020-04-23

## README

# ease-tweening
a light lib of tweening

![Node.js CI](https://github.com/niuben/ease-tweening/workflows/Node.js%20CI/badge.svg)

## API

create tweening

```js
var easeNameTweening = tweening.easeName({
    from: number, //required
    to: number, //required
    duration:  millisecond  //optional default: 1000
    onUpdate: function(data, percent){ }, //optional
    onEnd: function(data){}  //optional
})
```

## Example

```js
var easeTweening = require("ease-tweening");
var easeInTween = easeTweening.easeIn({
  to: 1,
  from: 1000,
  duration: 5000,
  onUpdate: function (data, percent) {
    console.log(data);
  },
});
```

list of easeName

- linear
- easeInQuad
- easeInCubic
- easeInQuart
- easeInQuint
- easeInSine
- easeInExpo
- easeInCirc
- easeInBounce
- easeInElastic
- easeInBack
- easeOutQuad
- easeOutCubic
- easeOutQuart
- easeOutQuint
- easeOutSine
- easeOutExpo
- easeOutCirc
- easeOutBounce
- easeOutElastic
- easeOutBack
- easeInOutQuad
- easeInOutCubic
- easeInOutQuart
- easeInOutQuint
- easeInOutSine
- easeInOutExpo
- easeInOutCirc
- easeInOutBounce
- easeInOutElastic
- easeInOutBack

Thanks for [tween-functions](https://www.npmjs.com/package/tween-functions)

![曲线](https://niuben.github.io/ease-tweening/demo/download.png)

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