Signature
A value between 0 and 1 representing the progress of the animation
The eased value, typically between 0 and 1 (some easing functions like elastic and back may exceed this range)
Usage
Easing functions are commonly used with transitions and animations:Available Functions
linear
Quadratic (quad)
Cubic
Quartic (quart)
Quintic (quint)
Sinusoidal (sine)
Exponential (expo)
Circular (circ)
Back
Elastic
back.
Bounce
Easing Variants
Most easing functions come in three variants:- In: Starts slow and accelerates (easing at the beginning)
- Out: Starts fast and decelerates (easing at the end)
- InOut: Combines both, easing at the beginning and end
Creating Custom Easing
You can create custom easing functions:Notes
- All easing functions accept a value
tbetween 0 and 1 - Some functions (elastic, back, bounce) may return values outside the 0-1 range
- For most UI animations,
cubicOutorcubicInOutprovide good defaults - Easing functions are pure and have no side effects
- The library is adapted from mattdesl’s work, distributed under MIT License
See Also
- Transitions - Use easing with built-in transitions
- Motion - Use easing with tweened values
- Easing visualizer - Interactive examples