Variable: Easing
ts
const Easing: object;Easing functions for tweening. All take a normalized t in [0, 1] and return the eased value (typically [0, 1], but Back / Elastic over/undershoot intentionally).
Naming: In* accelerates from rest; Out* decelerates to rest; InOut* does both. These match the de-facto Robert Penner names used across Cocos / Unity / GSAP.
Usage: const v = Easing.OutCubic(t); // direct x = a + (b - a) * Easing.InOutQuad(t); // mix
Type Declaration
| Name | Type | Description |
|---|---|---|
InBack() | (t) => number | Back easing — overshoots before settling. s controls the overshoot amount (default = 1.70158). |
InCirc() | (t) => number | - |
InCubic() | (t) => number | - |
InExpo() | (t) => number | - |
InOutBack() | (t) => number | - |
InOutCirc() | (t) => number | - |
InOutCubic() | (t) => number | - |
InOutExpo() | (t) => number | - |
InOutQuad() | (t) => number | - |
InOutQuart() | (t) => number | - |
InOutSine() | (t) => number | - |
InQuad() | (t) => number | - |
InQuart() | (t) => number | - |
InSine() | (t) => number | - |
Linear() | (t) => number | - |
OutBack() | (t) => number | - |
OutBounce() | (t) => number | Bounce — multiple decaying impacts. |
OutCirc() | (t) => number | - |
OutCubic() | (t) => number | - |
OutElastic() | (t) => number | Elastic — springy oscillation. |
OutExpo() | (t) => number | - |
OutQuad() | (t) => number | - |
OutQuart() | (t) => number | - |
OutSine() | (t) => number | - |