Easing
Summary
Each easing function takes a value between 0 and 1 and modifies it to speed up or slow down at either end
Class Methods
Easing:Linear(t)
Linear easing function
Returns: number (The input is returned unchanged)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InQuad(t)
InQuad easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutQuad(t)
OutQuad easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutQuad(t)
InOutQuad easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InCubic(t)
InCubic easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutCubic(t)
OutCubic easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutCubic(t)
InOutCubic easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InQuart(t)
InQuart easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutQuart(t)
OutQuart easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutQuart(t)
InQuart easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InQuint(t)
InQuint easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutQuint(t)
OutQuint easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutQuint(t)
InOutQuint easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InSine(t)
InSine easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutSine(t)
OutSine easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutSine(t)
InOutSine easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InExpo(t)
InExpo easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutExpo(t)
OutExpo easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutExpo(t)
InOutExpo easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InCirc(t)
InCirc easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutCirc(t)
OutCirc easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutCirc(t)
InOutCirc easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InElastic(t)
InElastic easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutElastic(t)
OutElastic easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutElastic(t)
InOutElastic easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InBack(t)
InBack easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutBack(t)
OutBack easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutBack(t)
InOutBack easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InBounce(t)
InBounce easing function
Returns: number (The value smoothed in the in direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:OutBounce(t)
OutBounce easing function
Returns: number (The value smoothed in the out direction only)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Easing:InOutBounce(t)
InOutBounce easing function
Returns: number (The value smoothed in and out)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
t | number | The input value between 0 and 1 |
Example
Last updated