[go: up one dir, main page]

@brendangooch/ease
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

ease

a ts/js library of standard easing functions, copied from easings.net, all credit to them.

if importing into a typescript project, add the following type declarations to your custom.d.ts

type tEaseOption = 'noEase' | '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' | 'easeInOutBounce';
type tEaseFunction = (x: number) => number;

Readme

Keywords

Package Sidebar

Install

npm i @brendangooch/ease

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

11 kB

Total Files

5

Last publish

Collaborators

  • brendangooch