(protected) new animation.Easing() [source]
Static Methods
(static) in(t) [source]
Start slow and speed up.
Parameter | Type | Description |
---|---|---|
t
|
number | Input between 0 and 1. |
Returns:
number: Output between 0 and 1.(static) out(t) [source]
Start fast and slow down.
Parameter | Type | Description |
---|---|---|
t
|
number | Input between 0 and 1. |
Returns:
number: Output between 0 and 1.(static) inAndOut(t) [source]
Start slow, speed up, and then slow down again.
Parameter | Type | Description |
---|---|---|
t
|
number | Input between 0 and 1. |
Returns:
number: Output between 0 and 1.(static) linear(t) [source]
Maintain a constant speed over time.
Parameter | Type | Description |
---|---|---|
t
|
number | Input between 0 and 1. |
Returns:
number: Output between 0 and 1.(static) upAndDown(t) [source]
Start slow, speed up, and at the very end slow down again. This has the
same general behavior as inAndOut, but the final slowdown
is delayed.
Parameter | Type | Description |
---|---|---|
t
|
number | Input between 0 and 1. |