math.ease
The math easing functions.
Functions
function math.ease.backIn(fraction: number): number
Eases in by reversing the direction of the ease slightly before returning.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.backInOut(fraction: number): number
Eases in and out by reversing the direction of the ease slightly before returning on both ends.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.backOut(fraction: number): number
Eases out by reversing the direction of the ease slightly before finishing.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.bounceIn(fraction: number): number
Eases in like a bouncy ball.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.bounceInOut(fraction: number): number
Eases in and out like a bouncy ball.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.bounceOut(fraction: number): number
Eases out like a bouncy ball.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.circIn(fraction: number): number
Eases in using a circular function.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.circInOut(fraction: number): number
Eases in and out using a circular function.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.circOut(fraction: number): number
Eases out using a circular function.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.cubicIn(fraction: number): number
Eases in by cubing the fraction.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.cubicInOut(fraction: number): number
Eases in and out by cubing the fraction.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.cubicOut(fraction: number): number
Eases out by cubing the fraction.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.elasticIn(fraction: number): number
Eases in like a rubber band.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.elasticInOut(fraction: number): number
Eases in and out like a rubber band.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.elasticOut(fraction: number): number
Eases out like a rubber band.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.expoIn(fraction: number): number
Eases in using an exponential equation with a base of 2 and where the fraction is used in the exponent.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.expoInOut(fraction: number): number
Eases in and out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.expoOut(fraction: number): number
Eases out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quadIn(fraction: number): number
Eases in by squaring the fraction.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quadInOut(fraction: number): number
Eases in and out by squaring the fraction.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quadOut(fraction: number): number
Eases out by squaring the fraction.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quartIn(fraction: number): number
Eases in by raising the fraction to the power of 4.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quartInOut(fraction: number): number
Eases in and out by raising the fraction to the power of 4.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quartOut(fraction: number): number
Eases out by raising the fraction to the power of 4.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quintIn(fraction: number): number
Eases in by raising the fraction to the power of 5.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quintInOut(fraction: number): number
Eases in and out by raising the fraction to the power of 5.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.quintOut(fraction: number): number
Eases out by raising the fraction to the power of 5.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.sineIn(fraction: number): number
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.sineInOut(fraction: number): number
Eases in and out using math.sin.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |
function math.ease.sineOut(fraction: number): number
Eases out using math.sin.
Parameters
| Name | Type | Description |
|---|
fraction | number | Fraction of the progress to ease, from 0 to 1. |
Returns
| Type | Name | Description |
|---|
number | eased | The eased number. |