eases
This is a grab-bag of Robert Penner's easing equations, most of the code from glsl-easings. Pull requests for optimizations are welcome.
//require all easesvar quadIn = quadIn //require only the single functionvar quadIn =
Usage
Each easing has its own file which can be required individually. The entry point also exports all eases with camelCase, so require('eases/expo-in-out')
becomes require('eases').expoInOut
.
Full list of eases:
All easing functions only remap a time value, and all have the same signature.
v = ease(t)
Where t
is typically a value between 0 and 1, and it returns a new float that has been eased.
License
MIT, see LICENSE.md for details.