1.2.1 • Published 9 months ago

@brendangooch/ease v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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;
1.2.1

9 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago