Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaelzhang/easing-functions
Robert Penner's easing functions
https://github.com/kaelzhang/easing-functions
animation easing-functions
Last synced: 4 days ago
JSON representation
Robert Penner's easing functions
- Host: GitHub
- URL: https://github.com/kaelzhang/easing-functions
- Owner: kaelzhang
- License: mit
- Created: 2014-08-24T11:24:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-31T02:35:23.000Z (about 7 years ago)
- Last Synced: 2024-04-15T12:32:58.007Z (7 months ago)
- Topics: animation, easing-functions
- Language: JavaScript
- Size: 7.81 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# easin
Robert Penner's easing functions from [phaser](https://github.com/photonstorm/phaser).
## Install
```bash
$ npm i easing-functions
```## Usage
```js
import Easing from 'easing-functions'const QO = Easing.Quadratic.Out
```## Easing.<type>.<output>(x)
type \ output | In | Out | InOut | None
------------- | ---- | ----- | ------- | ------
Linear | x | x | x | ✓
Quadratic | ✓ | ✓ | ✓ | x
Cubic | ✓ | ✓ | ✓ | x
Quartic | ✓ | ✓ | ✓ | x
Quintic | ✓ | ✓ | ✓ | x
Sinusoidal | ✓ | ✓ | ✓ | x
Exponential | ✓ | ✓ | ✓ | x
Circular | ✓ | ✓ | ✓ | x
Elastic | ✓ | ✓ | ✓ | x
Back | ✓ | ✓ | ✓ | x
Bounce | ✓ | ✓ | ✓ | x## License
The MIT License
- (c) 2014 Phaser.io