Skip to main content

Module ease

Module ease 

Source
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.