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:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:Linear(value)

Easing:InQuad(t)

InQuad easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InQuad(value)

Easing:OutQuad(t)

OutQuad easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutQuad(value)

Easing:InOutQuad(t)

InOutQuad easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutQuad(value)

Easing:InCubic(t)

InCubic easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InCubic(value)

Easing:OutCubic(t)

OutCubic easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutCubic(value)

Easing:InOutCubic(t)

InOutCubic easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutCubic(value)

Easing:InQuart(t)

InQuart easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InQuart(value)

Easing:OutQuart(t)

OutQuart easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutQuart(value)

Easing:InOutQuart(t)

InQuart easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InQuart(value)

Easing:InQuint(t)

InQuint easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InQuint(value)

Easing:OutQuint(t)

OutQuint easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutQuint(value)

Easing:InOutQuint(t)

InOutQuint easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutQuint(value)

Easing:InSine(t)

InSine easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InSine(value)

Easing:OutSine(t)

OutSine easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutSine(value)

Easing:InOutSine(t)

InOutSine easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutSine(value)

Easing:InExpo(t)

InExpo easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InExpo(value)

Easing:OutExpo(t)

OutExpo easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutExpo(value)

Easing:InOutExpo(t)

InOutExpo easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutExpo(value)

Easing:InCirc(t)

InCirc easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InCirc(value)

Easing:OutCirc(t)

OutCirc easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutCirc(value)

Easing:InOutCirc(t)

InOutCirc easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutCirc(value)

Easing:InElastic(t)

InElastic easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InElastic(value)

Easing:OutElastic(t)

OutElastic easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutElastic(value)

Easing:InOutElastic(t)

InOutElastic easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutElastic(value)

Easing:InBack(t)

InBack easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InBack(value)

Easing:OutBack(t)

OutBack easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutBack(value)

Easing:InOutBack(t)

InOutBack easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutBack(value)

Easing:InBounce(t)

InBounce easing function

Returns: number (The value smoothed in the in direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InBounce(value)

Easing:OutBounce(t)

OutBounce easing function

Returns: number (The value smoothed in the out direction only)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:OutBounce(value)

Easing:InOutBounce(t)

InOutBounce easing function

Returns: number (The value smoothed in and out)

Parameters:

NameTypeDefaultDescription

t

number

The input value between 0 and 1

Example

value = Easing:InOutBounce(value)

Last updated