Expand description
Easing functions — Rust port of Remotion’s Easing module.
All functions map an input in [0.0, 1.0] to an output in [0.0, 1.0]
(though some may overshoot slightly).
Functions§
- bezier
- Generates a cubic Bézier easing function from two control points.
- ease
- CSS
easepreset —cubic-bezier(0.25, 0.1, 0.25, 1.0). - ease_in
- CSS
ease-inpreset —cubic-bezier(0.42, 0, 1.0, 1.0). - ease_
in_ cubic - Cubic ease-in.
- ease_
in_ out - CSS
ease-in-outpreset —cubic-bezier(0.42, 0, 0.58, 1.0). - ease_
in_ out_ cubic - Cubic ease-in-out.
- ease_
in_ out_ quad - Quad ease-in-out.
- ease_
in_ out_ sine - Sine ease-in-out.
- ease_
in_ quad - Quad ease-in.
- ease_
in_ sine - Sine ease-in.
- ease_
out - CSS
ease-outpreset —cubic-bezier(0, 0, 0.58, 1.0). - ease_
out_ cubic - Cubic ease-out.
- ease_
out_ quad - Quad ease-out.
- ease_
out_ sine - Sine ease-out.
- linear
- Linear — no easing.
Type Aliases§
- Easing
Fn - An easing function: maps progress
t ∈ [0, 1]to an eased value.