A tiny javascript easing package with no dependencies.
npm install @tchesa/ease

A tiny javascript easing package with no dependencies.
``sh`
npm i @tchesa/ease
js
import { easeOutCubic } from '@tchesa/ease'console.log(easeOutCubic(0.5)); // -> 0.875
`Methods
- easeInSine
- easeOutSine
- easeInOutSine
- easeInQuad
- easeOutQuad
- easeInOutQuad
- easeInCubic
- easeOutCubic
- easeInOutCubic
- easeInQuart
- easeOutQuart
- easeInOutQuart
- easeInQuint
- easeOutQuint
- easeInOutQuint
- easeInExpo
- easeOutExpo
- easeInOutExpo
- easeInCirc
- easeOutCirc
- easeInOutCirc
- easeInBack
- easeOutBack
- easeInOutBack
- easeInElastic
- easeOutElastic
- easeInOutElastic
- easeInBounce
- easeOutBounce
- easeInOutBounceContribute
To include a new easing function:
- Create a index.ts inside a new folder for each easing function inside src, e.g. src/newEasingFunction/index.ts;
- include their export in src/index.ts file.
`ts
// ...
export { default as newEasingFunction } from "./newEasingFunction";
``> Easing functions' implementation from See https://easings.net/.