| Easing Class and Ease-In Equation |
Ease-In |
Ease-Out |
Ease-In-Out |
|
claw::tween::easing_back
f(t) = t² × (2.70158 × t − 1.70158)
|
\image html tween/back-in.png |
\image html tween/back-out.png |
\image html tween/back-inout.png |
claw::tween::easing_bounce
| f(t) = |
1 − 7.5625 × (1-t)² if 1 − t < 1 ÷ 2.75
or 1 − (7.5625 × (1 − t − 1.5 ÷ 2.75)² + 0.75)
if 1 − t < 2 ÷ 2.75
or 1 − (7.5625 × (1 − t − 2.25 ÷ 2.75)² + 0.9375)
if 1 − t < 2.5 ÷ 2.75
1 − (7.5625 × (1 − t − 2.625 / 2.75)² + 0.984375)
otherwise
|
|
\image html tween/bounce-in.png |
\image html tween/bounce-out.png |
\image html tween/bounce-inout.png |
|
claw::tween::easing_circ
f(t) = 1 − √(1 − t²)
|
\image html tween/circ-in.png |
\image html tween/circ-out.png |
\image html tween/circ-inout.png |
|
claw::tween::easing_cubic
f(t) = t³
|
\image html tween/cubic-in.png |
\image html tween/cubic-out.png |
\image html tween/cubic-inout.png |
|
claw::tween::easing_elastic
f(t) = −210 × (t − 1) × sin(((t − 1) − 0.3 ÷ 4) × 2 × π ÷ 4)
|
\image html tween/elastic-in.png |
\image html tween/elastic-out.png |
\image html tween/elastic-inout.png |
claw::tween::easing_expo
| f(t) = |
0 if t = 0
210 × (t − 1)
|
| \image html tween/expo-in.png |
\image html tween/expo-out.png |
\image html tween/expo-inout.png |
|
claw::tween::easing_linear
f(t) = t
|
\image html tween/linear-in.png |
\image html tween/linear-out.png |
\image html tween/linear-inout.png |
|
claw::tween::easing_none
f(t) = 0
|
\image html tween/none-in.png |
\image html tween/none-out.png |
\image html tween/none-inout.png |
|
claw::tween::easing_quad
f(t) = t²
|
\image html tween/quad-in.png |
\image html tween/quad-out.png |
\image html tween/quad-inout.png |
|
claw::tween::easing_quart
f(t) = t⁴
|
\image html tween/quart-in.png |
\image html tween/quart-out.png |
\image html tween/quart-inout.png |
|
claw::tween::easing_quint
f(t) = t⁵
|
\image html tween/quint-in.png |
\image html tween/quint-out.png |
\image html tween/quint-inout.png |
|
claw::tween::easing_sine
f(t) = 1 − cos(t × π ÷ 2)
|
\image html tween/sine-in.png |
\image html tween/sine-out.png |
\image html tween/sine-inout.png |
*/