# easing-functions

Robert Penner's easing functions from [phaser](https://github.com/photonstorm/phaser).

## Install

```bash
$ npm i easing-functions
```

## Usage

```js
const Easing = require('easing-functions')

Easing.Quadratic.Out
Easing.quadratic.out

// You could also access the easing function via

Easing['quadratic.out']

// or

Easing['Quadratic.Out']
```

## Easing.&lt;type&gt;.&lt;output&gt;(x)

type \ output |  In  |  Out  |  InOut
------------- | ---- | ----- | -------
Linear        |   x  |   x   |    x
Quadratic     |   ✓  |   ✓   |   ✓
Cubic         |   ✓  |   ✓   |   ✓
Quartic       |   ✓  |   ✓   |   ✓
Quintic       |   ✓  |   ✓   |   ✓
Sinusoidal    |   ✓  |   ✓   |   ✓
Exponential   |   ✓  |   ✓   |   ✓
Circular      |   ✓  |   ✓   |   ✓
Elastic       |   ✓  |   ✓   |   ✓
Back          |   ✓  |   ✓   |   ✓
Bounce        |   ✓  |   ✓   |   ✓


## License

The MIT License
