Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/streamich/ts-easing
Easing functions in TypeScript
https://github.com/streamich/ts-easing
Last synced: about 2 months ago
JSON representation
Easing functions in TypeScript
- Host: GitHub
- URL: https://github.com/streamich/ts-easing
- Owner: streamich
- License: unlicense
- Created: 2018-10-27T16:27:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:34:29.000Z (9 months ago)
- Last Synced: 2024-07-27T16:46:06.402Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 73
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-easing
Collection of easing function in TypeScript.
All functions accept a number in range of `[0..1]`.
All functions return a number, which is guaranteed to start at 0 and end at 1.
```
f(t), where t in [0..1]f(0) -> 0
f(1) -> 1
```## Usage
```js
import {easing} from 'ts-easing';console.log(easing.quadratic(0.5));
```## License
[Unlicense](./LICENSE) — public domain.