# lerpjs

> The method of linear interpolation (lerp) to easing animations.

Latest version **1.1.2** (published 2020-08-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2020-08-28 |
| First published | 2019-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Przemysław Tyczyński |
| Maintainers | tyczynski |
| Keywords | lerp, linear-interpolation, animation, animations, easing, easing-functions |

## Links

- npm: https://www.npmjs.com/package/lerpjs
- Repository: https://github.com/tyczynski/lerp.js
- Homepage: https://github.com/tyczynski/lerp.js#readme
- Issues: https://github.com/tyczynski/lerp.js/issues
- npm.io page: https://npm.io/package/lerpjs

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [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

## Recent versions

- 1.1.2 (latest) — 2020-08-28
- 1.1.1 — 2020-03-08
- 1.1.0 — 2020-03-06
- 1.0.3 — 2019-07-28
- 1.0.2 — 2019-07-28
- 1.0.0 — 2019-07-18

## README

# lerp.js [![npm version](https://badge.fury.io/js/lerpjs.svg)](https://badge.fury.io/js/lerpjs)

The method of linear interpolation (lerp) to easing animations.

## Example

```javascript
import lerp from 'lerpjs';

/**
 * @param {number} x - first value
 * @param {number} y - second value
 * @param {number} a - amount to interpolate between x and y
 * @return {number}
 */
lerp(0, 100, 0.2); // => 20
```

## License

[MIT](LICENSE) | [Przemysław Tyczyński](https://tyczynski.pl)

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