Examples
import { Easing } from '@wimaengine/tween'
const ease = Easing.quadraticOut
const progress = ease(0.25) // 0.4375Default: ...
Variable
Easing: objectBuilt-in easing functions for mapping normalized tween progress to a curve.
Each function accepts a progress value x, normally in the inclusive range
0 to 1, and returns the corresponding eased progress. Names ending in
In accelerate from the start, names ending in Out decelerate into the
end, and names ending in InOut combine both phases. Back and elastic
curves can overshoot during the transition, while bounce curves add a
rebound effect with slight endpoint offsets. These functions do not clamp
or validate x.
Pass a member directly wherever a EasingFn is accepted, such as the
easing argument of Tween.
import { Easing } from '@wimaengine/tween'
const ease = Easing.quadraticOut
const progress = ease(0.25) // 0.4375Default: ...