Skip to main content

Module easing

Module easing 

Source
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 ease preset — cubic-bezier(0.25, 0.1, 0.25, 1.0).
ease_in
CSS ease-in preset — cubic-bezier(0.42, 0, 1.0, 1.0).
ease_in_cubic
Cubic ease-in.
ease_in_out
CSS ease-in-out preset — 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-out preset — 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§

EasingFn
An easing function: maps progress t ∈ [0, 1] to an eased value.