# penner

> Penner's easing equations, in JavaScript

Latest version **0.1.3** (published 2015-10-09) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2015-10-09 |
| First published | 2013-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/penner) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Boris Cherny |
| Maintainers | bcherny |
| Keywords | easing, ease, transition, tween, animation, css, effects, animationframe, transform |

## Links

- npm: https://www.npmjs.com/package/penner
- Repository: https://github.com/bcherny/penner
- Homepage: https://github.com/bcherny/penner#readme
- Issues: https://github.com/bcherny/penner/issues
- npm.io page: https://npm.io/package/penner

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2015-10-09
- 0.1.2 — 2015-04-20
- 0.1.1 — 2015-04-20
- 0.1.0 — 2013-09-15

## README

# penner

A library for Penner's easing equations

## what?

See http://upshots.org/actionscript/jsas-understanding-easing

## usage

```js
var t = 0,		// current time (ms, s, frames, ...)
	b = 10,		// initial value
	c = 100,	// change in value (final value - initial value)
	d = 2		// duration (same units as t)
	value = penner.easeOutQuad(t, b, c, d);
```

## included easing functions

`linear` `easeInQuad` `easeOutQuad` `easeInOutQuad` `easeInCubic` `easeOutCubic` `easeInOutCubic` `easeInQuart` `easeOutQuart` `easeInOutQuart` `easeInQuint` `easeOutQuint` `easeInOutQuint` `easeInSine` `easeOutSine` `easeInOutSine` `easeInExpo` `easeOutExpo` `easeInOutExpo` `easeInCirc` `easeOutCirc` `easeInOutCirc` `easeInElastic` `easeOutElastic` `easeInOutElastic` `easeInBack` `easeOutBack` `easeInOutBack` `easeInBounce` `easeOutBounce` `easeInOutBounce`

## size

|						|				|
|-----------------------|---------------|
| Raw					| 7880 bytes	|
| Uglified				| 3200 bytes	|
| Uglified + gzipped	| 865 bytes		|

## environment support

Any browser (as `window.penner`), AMD, CommonJS, NodeJS

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