class Reactive · Animation

EasingFunctions

Curves for the easing option of animations: each maps the time from 0 to 1 to the progress from 0 to 1.

Eased animations (eased, along a path, trace) use easeInOutCubic when no easing is given; repeating animations and text animations use linear. In curves start slowly, Out curves end slowly, InOut do both; easeOutBack goes past the end and comes back. Any function (t: number) => number with f(0) = 0 and f(1) = 1 works too.

Static properties

easeInCubicstaticreadonly

static readonly easeInCubic: (t: number) => number

Cubic ease-in function that starts slowly and accelerates. Uses a cubic (power of 3) curve for smooth acceleration.

easeInOutCubicstaticreadonly

static readonly easeInOutCubic: (t: number) => number

Cubic ease-in-out function that accelerates in the first half and decelerates in the second half. Combines ease-in and ease-out for smooth start and end transitions.

easeInOutSinestaticreadonly

static readonly easeInOutSine: (t: number) => number

Sine ease-in-out function that starts and ends slowly with a sinusoidal curve. Provides smooth acceleration and deceleration using a sine wave pattern.

easeInSinestaticreadonly

static readonly easeInSine: (t: number) => number

Sine ease-in function that starts slowly with a sinusoidal curve. Provides gentle acceleration using a sine wave pattern.

easeOutBackstaticreadonly

static readonly easeOutBack: (t: number) => number

Back ease-out function that overshoots the target value before settling. Creates a spring-like effect where the value goes beyond 1.0 before returning.

easeOutCubicstaticreadonly

static readonly easeOutCubic: (t: number) => number

Cubic ease-out function that starts quickly and decelerates. Uses a cubic curve for smooth deceleration towards the end.

easeOutSinestaticreadonly

static readonly easeOutSine: (t: number) => number

Sine ease-out function that ends slowly with a sinusoidal curve. Provides gentle deceleration using a sine wave pattern.

linearstaticreadonly

static readonly linear: (t: number) => number

Linear easing function that returns the input value unchanged. Provides constant speed throughout the animation.