Constructor
new Ease()
Methods
backIn(t, b, c, d, sopt) → {Number}
Start moving back, then move toward the target in reverse direction.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). | ||
b |
Number
|
Specifies the initial value of the animation property. | ||
c |
Number
|
Specifies the total amount of changes to the animation property. | ||
d |
Number
|
Specify the duration of the movement. | ||
s |
Number
|
<optional> |
1.70158 | s Specify the impulse, the greater the value here, the greater the overshoot. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
backInOut(t, b, c, d, sopt) → {Number}
When moving, it is backward tracking, reversing, and moving toward the target, slightly over the target, then turning back again and moving back toward the target.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). | ||
b |
Number
|
Specifies the initial value of the animation property. | ||
c |
Number
|
Specifies the total amount of changes to the animation property. | ||
d |
Number
|
Specify the duration of the movement. | ||
s |
Number
|
<optional> |
1.70158 | s Specify the impulse, the greater the value here, the greater the overshoot. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
backOut(t, b, c, d, sopt) → {Number}
When you start moving, move toward the target, slightly overshoot, then turn back, toward the target.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). | ||
b |
Number
|
Specifies the initial value of the animation property. | ||
c |
Number
|
Specifies the total amount of changes to the animation property. | ||
d |
Number
|
Specify the duration of the movement. | ||
s |
Number
|
<optional> |
1.70158 | s Specify the impulse, the greater the value here, the greater the overshoot. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
bounceIn(t, b, c, d) → {Number}
The method starts at zero rate, and then speeds up the movement at execution.
Its motion is similar to the rebound motion of a ball that has fallen to the floor and bounced back several times.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
bounceInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
Its motion is similar to the rebound motion of a ball that has fallen to the floor and bounced back several times.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
bounceOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
Its motion is similar to the rebound motion of a ball that has fallen to the floor and bounced back several times.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
circIn(t, b, c, d) → {Number}
The method starts at zero rate, and then speeds up the movement at execution.
The acceleration of motion of a slow motion equation yields a sudden rate change.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
circInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
The acceleration of motion of a slow motion equation yields a sudden rate change.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
circOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
The acceleration of motion of a slow motion equation yields a sudden rate change.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
cubicIn(t, b, c, d) → {Number}
The method starts at zero rate, and then speeds up the movement at execution.
The motion acceleration of Cubic delay equation is larger than that of Quad.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
cubicInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
The motion acceleration of Cubic delay equation is larger than that of Quad.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
cubicOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
The motion acceleration of Cubic delay equation is larger than that of Quad.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
elasticIn(t, b, c, d, aopt, popt) → {Number}
The method starts at zero rate, and then speeds up the movement at execution.
The motion is defined by a sinusoidal wave that decays exponentially.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). | ||
b |
Number
|
Specifies the initial value of the animation property. | ||
c |
Number
|
Specifies the total amount of changes to the animation property. | ||
d |
Number
|
Specify the duration of the movement. | ||
a |
Number
|
<optional> |
0 | a Specify the amplitude of the sine wave. |
p |
Number
|
<optional> |
0 | p Specifies the period of the sine wave. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
elasticInOut(t, b, c, d, aopt, popt) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
The motion is defined by a sinusoidal wave that decays exponentially.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). | ||
b |
Number
|
Specifies the initial value of the animation property. | ||
c |
Number
|
Specifies the total amount of changes to the animation property. | ||
d |
Number
|
Specify the duration of the movement. | ||
a |
Number
|
<optional> |
0 | a Specify the amplitude of the sine wave. |
p |
Number
|
<optional> |
0 | p Specifies the period of the sine wave. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
elasticOut(t, b, c, d, aopt, popt) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
The motion is defined by a sinusoidal wave that decays exponentially.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). | ||
b |
Number
|
Specifies the initial value of the animation property. | ||
c |
Number
|
Specifies the total amount of changes to the animation property. | ||
d |
Number
|
Specify the duration of the movement. | ||
a |
Number
|
<optional> |
0 | a Specify the amplitude of the sine wave. |
p |
Number
|
<optional> |
0 | p Specifies the period of the sine wave. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
expoIn(t, b, c, d) → {Number}
The method starts at zero rate, and then speeds up the movement at execution.
Each of these intervals subtracts a fixed proportion from the remaining distance.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
expoInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
Each of these intervals subtracts a fixed proportion from the remaining distance.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
expoOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
Each of these intervals subtracts a fixed proportion from the remaining distance.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
linearIn(t, b, c, d) → {Number}
Define non accelerating sustained motion.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
linearInOut(t, b, c, d) → {Number}
Define non accelerating sustained motion.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
linearNone(t, b, c, d) → {Number}
Define non accelerating sustained motion.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
linearOut(t, b, c, d) → {Number}
Define non accelerating sustained motion.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quadIn(t, b, c, d) → {Number}
The method starts at zero rate, and then speeds up the movement at execution.
The motion acceleration in the Quad slow motion equation is equal to the acceleration of the 100% time axis, and the motion acceleration is less than that of the Cubic equation.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quadInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
The motion acceleration in the Quad slow motion equation is equal to the acceleration of the 100% time axis, and the motion acceleration is less than that of the Cubic equation.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quadOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
The motion acceleration in the Quad slow motion equation is equal to the acceleration of the 100% time axis, and the motion acceleration is less than that of the Cubic equation.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quartIn(t, b, c, d) → {Number}
The method starts at zero rate, and then speeds up the movement at execution.
The motion acceleration of Quart delay equation is larger than that of Cubic.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quartInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
The motion acceleration of Quart delay equation is larger than that of Cubic.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quartOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
The motion acceleration of Quart delay equation is larger than that of Cubic.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quintIn(t, b, c, d) → {Number}
Start motion at zero speed, then speed up movement at execution.
The motion acceleration of Quint delay equation is larger than that of Quart.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quintInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
The motion acceleration of Quint delay equation is larger than that of Quart.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
quintOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
The motion acceleration of Quint delay equation is larger than that of Quart.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
sineIn(t, b, c, d) → {Number}
Start motion at zero speed, then speed up movement at execution.
The motion acceleration in the Sine slow motion equation is smaller than that in the Quad equation.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
sineInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
The motion acceleration in the Sine slow motion equation is smaller than that in the Quad equation.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
sineOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
The motion acceleration in the Sine slow motion equation is smaller than that in the Quad equation.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
strongIn(t, b, c, d) → {Number}
Start motion at zero speed, then speed up movement at execution.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
strongInOut(t, b, c, d) → {Number}
The rate at which the motion starts is zero. The motion is accelerated first and then decelerated until the speed is zero.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.
strongOut(t, b, c, d) → {Number}
Begin motion at a faster rate, then slow down at execution until the rate is zero.
Parameters:
Name | Type | Description |
---|---|---|
t |
Number
|
Specifies the current time between 0 and duration (including two). |
b |
Number
|
Specifies the initial value of the animation property. |
c |
Number
|
Specifies the total amount of changes to the animation property. |
d |
Number
|
Specify the duration of the movement. |
Returns:
- Type:
-
Number
The value of the interpolated property at the specified time.