Easing
TheEasing object provides a comprehensive collection of easing functions.
Basic functions
linear
No easing, constant rate.step
Steps through values in discrete increments.number
required
Number of steps
bezier
Creates a cubic bezier easing function.number
required
X coordinate of first control point
number
required
Y coordinate of first control point
number
required
X coordinate of second control point
number
required
Y coordinate of second control point
Polynomial easing
Quad
Quadratic easing (power of 2).Cubic
Cubic easing (power of 3).Quart
Quartic easing (power of 4).Quint
Quintic easing (power of 5).Transcendental easing
Sine
Sinusoidal easing.Expo
Exponential easing.Circ
Circular easing.Physical easing
Back
Easing with overshoot.Elastic
Elastic spring-like easing.Bounce
Bouncing easing.Usage examples
With interpolate
With transition
Custom bezier curves
Step function
Visualization
All easing functions expect inputt in the range [0, 1] and return output in approximately the range [0, 1] (some physical easings like back and elastic may overshoot).
- In: Slow start, fast end
- Out: Fast start, slow end
- InOut: Slow start, fast middle, slow end