ES6 implementation of animation easing functions also used in jQuery easing animations. See nice visualization of all easing functions here: https://easings.net/
yarn add es6-easings
// or
npm install es6-easings
import {easeInOutQuad} from 'es6-easings';
- easeOutQuad
- easeInQuad
- easeInOutQuad
- easeInCubic
- easeOutCubic
- easeInOutCubic
- easeInQuart
- easeOutQuart
- easeInOutQuart
- easeInQuint
- easeOutQuint
- easeInOutQuint
- easeInSine
- easeOutSine
- easeInOutSine
- easeInExpo
- easeOutExpo
- easeInOutExpo
- easeInCirc
- easeOutCirc
- easeInOutCirc
- easeInElastic
- easeOutElastic
- easeInOutElastic
- easeInBack
- easeOutBack
- easeInOutBack
- easeInBounce
- easeOutBounce
- easeInOutBounce
Thanks to Robert Penner for writing the math!