Expand description
Standard easing curves as pure functions of normalized progress.
Every function clamps its input to [0, 1] (NaN counts as zero) and returns
exactly 0.0 at the start and 1.0 at the end. Back and elastic curves
deliberately overshoot between the endpoints.
Enums§
- Ease
- A copyable selection of one easing function, stored by tweens without boxing.
Functions§
- back_in
- Pulls back below zero before accelerating.
- back_
in_ out - Pulls back at the start and overshoots at the end.
- back_
out - Overshoots above one before settling.
- bounce_
in - Bounces that grow before leaving the start.
- bounce_
in_ out - Growing bounces, then decaying bounces.
- bounce_
out - Decaying bounces against the target.
- cubic_
in - Cubic acceleration from rest.
- cubic_
in_ out - Cubic acceleration, then deceleration.
- cubic_
out - Cubic deceleration to rest.
- elastic_
in - Growing oscillation before release.
- elastic_
in_ out - Growing, then decaying oscillation.
- elastic_
out - Decaying oscillation around the target.
- expo_in
- Exponential acceleration (base 2, ten doublings).
- expo_
in_ out - Exponential acceleration, then deceleration.
- expo_
out - Exponential deceleration (base 2, ten halvings).
- linear
- Constant rate.
- quad_in
- Quadratic acceleration from rest.
- quad_
in_ out - Quadratic acceleration, then deceleration.
- quad_
out - Quadratic deceleration to rest.
- sine_in
- Quarter-sine acceleration from rest.
- sine_
in_ out - Half-cosine acceleration, then deceleration.
- sine_
out - Quarter-sine deceleration to rest.