Skip to main content

Module easing

Module easing 

Source
Expand description

t∈[0,1] → [0,1] tweening curves. Each is clamped at the ends so f(0.0) == 0.0 and f(1.0) == 1.0 exactly (the demo + tests rely on it).

Functions§

bounce
Gravity bounce-to-rest. f(0)=0, f(1)=1.
ease_in_out_cubic
Smooth accelerate-then-decelerate (the workhorse).
ease_out_back
Overshoots slightly past 1.0 near the end, then settles — a confident “snap into place”. Endpoints are still exactly 0 and 1.
elastic
Springy elastic settle (decaying sine). f(0)=0, f(1)=1.
linear
Identity ramp.