atomic-ease
v0.1.0
Published
Namespace-aware easing functions.
Downloads
1
Readme
atomic-aese
Namespace-aware easing functions.
Usage
Source code:
import { ease } from "atomic-ease";
const result = ease.In.expo(0.5);
After bundling with Rollup:
const easeInExpo = (x) => (x <= 0 ? 0 : Math.pow(2, 10 * (x - 1)));
const result = easeInExpo(0.5);
Implemented easing types
- linear
- quad
- cubic
- quart
- expo
- back
...to be added more.
Create new easing functions
import { createEase } from "atomic-ease";
createEase.from()
createEase.concatenate()
createEase.integrate()
See type declaration for details.
Not yet very well tested.