Phaser API Documentation

  Version: 
<static> InOut(v, [amplitude], [period])

Description:

Elastic ease-in/out.

Parameters:

name type arguments Default description
v number

The value to be tweened.

amplitude number <optional> 0.1

The amplitude of the elastic ease.

period number <optional> 0.1

Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.

Returns:
Description:

The tweened value.

Type:
  • number
Since: 3.0.0