Skip to main content
Version: Phaser v4.0.0

Phaser.Math.Easing.Expo

Scope: static

Source: src/math/easing/expo/index.js#L7

Static functions

In

<static> In(v)

Description:

Exponential ease-in.

Parameters:

nametypeoptionaldescription
vnumberNoThe value to be eased.

Returns: number - The eased value.

Source: src/math/easing/expo/In.js#L7
Since: 3.0.0


InOut

<static> InOut(v)

Description:

Exponential ease-in/out. Produces a curve that accelerates sharply from zero using an exponential curve in the first half, then decelerates symmetrically to a smooth stop. The result is a pronounced S-shaped curve that starts and ends slowly with a rapid transition through the midpoint. Useful for dramatic animations where a strong snap-in and snap-out effect is desired.

Parameters:

nametypeoptionaldescription
vnumberNoThe value to be eased, in the range [0, 1].

Returns: number - The eased value, in the range [0, 1].

Source: src/math/easing/expo/InOut.js#L7
Since: 3.0.0


Out

<static> Out(v)

Description:

Exponential ease-out.

Parameters:

nametypeoptionaldescription
vnumberNoThe value to be eased.

Returns: number - The eased value.

Source: src/math/easing/expo/Out.js#L7
Since: 3.0.0