You’re reading the docs for Phaser v3.88.2. The latest is Phaser v4.1.0.

Phaser.Math.Easing.Elastic

Scope: static

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

Static functions

In

staticIn(v, [amplitude], [period])

Description:

Elastic ease-in.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be tweened.
amplitudenumberYes0.1The amplitude of the elastic ease.
periodnumberYes0.1Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Returns: number - The tweened value.

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


InOut

staticInOut(v, [amplitude], [period])

Description:

Elastic ease-in/out.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be tweened.
amplitudenumberYes0.1The amplitude of the elastic ease.
periodnumberYes0.1Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Returns: number - The tweened value.

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


Out

staticOut(v, [amplitude], [period])

Description:

Elastic ease-out.

Parameters:

nametypeoptionaldefaultdescription
vnumberNoThe value to be tweened.
amplitudenumberYes0.1The amplitude of the elastic ease.
periodnumberYes0.1Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Returns: number - The tweened value.

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