https://github.com/bastienrobert/eaaase
Some easing functions
https://github.com/bastienrobert/eaaase
ease library
Last synced: 3 months ago
JSON representation
Some easing functions
- Host: GitHub
- URL: https://github.com/bastienrobert/eaaase
- Owner: bastienrobert
- License: mit
- Created: 2018-12-11T11:28:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T20:17:51.000Z (about 3 years ago)
- Last Synced: 2024-12-15T09:37:20.867Z (10 months ago)
- Topics: ease, library
- Language: TypeScript
- Homepage: https://bastienrobert.github.io/eaaase/
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ease
Some ease functions
Developped to be used with really old browsers and with or without module bundler.
Fast & ~1kb gzipped[Example](https://bastienrobert.github.io/eaaase/example) using canvas 2d and easeInCubic function.
## Install
```
npm install eaaase
```## Usage
```
import Ease from "eaaase";
// or
const Ease = require("eaaase");Ease.linear(currentTime, from, to, duration);
})
```## Functions
- **linear** : _no easing, no acceleration_
- **quadratic**
- **cubic**
- **quartic**
- **quintic**
- **sine**
- **expo**
- **circular**
- **back**
- **bounce**
- **elastic**Inspired from http://gizma.com/easing/