dreamworkAPI
Ctrl K
GitHub
libraryDocs / math / ease

math.ease

librarysharedmenusource

The math easing functions.

Functions

math.ease.backInEases in by reversing the direction of the ease slightly before returning.
math.ease.backInOutEases in and out by reversing the direction of the ease slightly before returning on both ends.
math.ease.backOutEases out by reversing the direction of the ease slightly before finishing.
math.ease.bounceInEases in like a bouncy ball.
math.ease.bounceInOutEases in and out like a bouncy ball.
math.ease.bounceOutEases out like a bouncy ball.
math.ease.circInEases in using a circular function.
math.ease.circInOutEases in and out using a circular function.
math.ease.circOutEases out using a circular function.
math.ease.cubicInEases in by cubing the fraction.
math.ease.cubicInOutEases in and out by cubing the fraction.
math.ease.cubicOutEases out by cubing the fraction.
math.ease.elasticInEases in like a rubber band.
math.ease.elasticInOutEases in and out like a rubber band.
math.ease.elasticOutEases out like a rubber band.
math.ease.expoInEases in using an exponential equation with a base of 2 and where the fraction is used in the exponent.
math.ease.expoInOutEases in and out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
math.ease.expoOutEases out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
math.ease.quadInEases in by squaring the fraction.
math.ease.quadInOutEases in and out by squaring the fraction.
math.ease.quadOutEases out by squaring the fraction.
math.ease.quartInEases in by raising the fraction to the power of 4.
math.ease.quartInOutEases in and out by raising the fraction to the power of 4.
math.ease.quartOutEases out by raising the fraction to the power of 4.
math.ease.quintInEases in by raising the fraction to the power of 5.
math.ease.quintInOutEases in and out by raising the fraction to the power of 5.
math.ease.quintOutEases out by raising the fraction to the power of 5.
math.ease.sineInEases in using math.sin.
math.ease.sineInOutEases in and out using math.sin.
math.ease.sineOutEases out using math.sin.

#math.ease.backIn

sharedmenunodiscardsource
function math.ease.backIn(fraction: number): number

Eases in by reversing the direction of the ease slightly before returning.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.backInOut

sharedmenunodiscardsource
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
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.backOut

sharedmenunodiscardsource
function math.ease.backOut(fraction: number): number

Eases out by reversing the direction of the ease slightly before finishing.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.bounceIn

sharedmenunodiscardsource
function math.ease.bounceIn(fraction: number): number

Eases in like a bouncy ball.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.bounceInOut

sharedmenunodiscardsource
function math.ease.bounceInOut(fraction: number): number

Eases in and out like a bouncy ball.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.bounceOut

sharedmenunodiscardsource
function math.ease.bounceOut(fraction: number): number

Eases out like a bouncy ball.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.circIn

sharedmenunodiscardsource
function math.ease.circIn(fraction: number): number

Eases in using a circular function.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.circInOut

sharedmenunodiscardsource
function math.ease.circInOut(fraction: number): number

Eases in and out using a circular function.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.circOut

sharedmenunodiscardsource
function math.ease.circOut(fraction: number): number

Eases out using a circular function.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.cubicIn

sharedmenunodiscardsource
function math.ease.cubicIn(fraction: number): number

Eases in by cubing the fraction.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.cubicInOut

sharedmenunodiscardsource
function math.ease.cubicInOut(fraction: number): number

Eases in and out by cubing the fraction.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.cubicOut

sharedmenunodiscardsource
function math.ease.cubicOut(fraction: number): number

Eases out by cubing the fraction.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.elasticIn

sharedmenunodiscardsource
function math.ease.elasticIn(fraction: number): number

Eases in like a rubber band.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.elasticInOut

sharedmenunodiscardsource
function math.ease.elasticInOut(fraction: number): number

Eases in and out like a rubber band.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.elasticOut

sharedmenunodiscardsource
function math.ease.elasticOut(fraction: number): number

Eases out like a rubber band.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.expoIn

sharedmenunodiscardsource
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
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.expoInOut

sharedmenunodiscardsource
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
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.expoOut

sharedmenunodiscardsource
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
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quadIn

sharedmenunodiscardsource
function math.ease.quadIn(fraction: number): number

Eases in by squaring the fraction.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quadInOut

sharedmenunodiscardsource
function math.ease.quadInOut(fraction: number): number

Eases in and out by squaring the fraction.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quadOut

sharedmenunodiscardsource
function math.ease.quadOut(fraction: number): number

Eases out by squaring the fraction.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quartIn

sharedmenunodiscardsource
function math.ease.quartIn(fraction: number): number

Eases in by raising the fraction to the power of 4.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quartInOut

sharedmenunodiscardsource
function math.ease.quartInOut(fraction: number): number

Eases in and out by raising the fraction to the power of 4.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quartOut

sharedmenunodiscardsource
function math.ease.quartOut(fraction: number): number

Eases out by raising the fraction to the power of 4.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quintIn

sharedmenunodiscardsource
function math.ease.quintIn(fraction: number): number

Eases in by raising the fraction to the power of 5.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quintInOut

sharedmenunodiscardsource
function math.ease.quintInOut(fraction: number): number

Eases in and out by raising the fraction to the power of 5.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.quintOut

sharedmenunodiscardsource
function math.ease.quintOut(fraction: number): number

Eases out by raising the fraction to the power of 5.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.sineIn

sharedmenunodiscardsource
function math.ease.sineIn(fraction: number): number

Eases in using math.sin.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.sineInOut

sharedmenunodiscardsource
function math.ease.sineInOut(fraction: number): number

Eases in and out using math.sin.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.

#math.ease.sineOut

sharedmenunodiscardsource
function math.ease.sineOut(fraction: number): number

Eases out using math.sin.

Parameters
NameTypeDescription
fractionnumberFraction of the progress to ease, from 0 to 1.
Returns
TypeNameDescription
numbereasedThe eased number.
Generated from the dreamwork meta branch.