Expand description
Common easing functions.
Structs§
- Bezier
- A unit cubic Bézier curve, used for timing functions in CSS transitions and animations.
- Easing
Time - Easing function input.
Enums§
- Easing
Fn - Easing functions as a value.
Functions§
- back
- Cubic transition that goes slightly negative to start and ends very fast.
- bounce
- Oscillating transition that grows in magnitude, does not go negative, when the curve is about to go negative it sharply transitions to a new arc of larger magnitude.
- circ
- Cubic transition with slightly slowed start then
cubic. - cubic
- Cubic transition (t³).
- cubic_
bezier - X coordinate is time, Y coordinate is function advancement. The nominal range for both is 0 to 1.
- ease_in
- Applies the
ease_fn. - ease_
in_ out - Applies
ease_infor the first half thenease_outscaled to fit a single duration (1.0). - ease_
out - Applies the
ease_fnin reverse and flipped. - ease_
out_ in - Applies
ease_outfor the first half thenease_inscaled to fit a single duration (1.0). - elastic
- Oscillating transition that grows in magnitude, goes negative twice.
- expo
- Exponential transition. Very slow start, very fast end.
- linear
- Simple linear transition, no easing, no acceleration.
- none
- Always
1.fct(), that is, the completed transition. - quad
- Quadratic transition (t²).
- quart
- Fourth power transition (t⁴).
- quint
- Fifth power transition (t⁵).
- reverse
- Applies the
ease_fnin reverse. - reverse_
out - Applies the
ease_fnflipped. - sine
- Sine transition. Slow start, fast end.
- step_
ceil - Jumps to the final value by a number of
steps. - step_
floor - Jumps to the final value by a number of
steps.
Type Aliases§
- Easing
Step - Easing function output.