Class ElasticEase
Hierarchy
-
EasingFunction
- ElasticEase
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
Instantiates an elastic easing function
Parameters
-
Optional oscillations: number
Defines the number of oscillations
-
Optional springiness: number
Defines the amplitude of the oscillations
Returns ElasticEase
-
Properties
oscillationsSearch playground for oscillations
Defines the number of oscillations
springinessSearch playground for springiness
Defines the amplitude of the oscillations
Static Readonly EASINGMODE_ EASEINSearch playground for EASINGMODE_EASEIN
Interpolation follows the mathematical formula associated with the easing function.
Static Readonly EASINGMODE_ EASEINOUTSearch playground for EASINGMODE_EASEINOUT
Interpolation uses EaseIn for the first half of the animation and EaseOut for the second half.
Static Readonly EASINGMODE_ EASEOUTSearch playground for EASINGMODE_EASEOUT
Interpolation follows 100% interpolation minus the output of the formula associated with the easing function.
Methods
easeSearch playground for ease
-
Given an input gradient between 0 and 1, this returns the corresponding value of the easing function.
Parameters
-
gradient: number
Defines the value between 0 and 1 we want the easing value for
Returns number
the corresponding value on the curve defined by the easing function
-
get Easing ModeSearch playground for getEasingMode
-
Gets the current easing mode.
Returns number
the easing mode
set Easing ModeSearch playground for setEasingMode
-
Sets the easing mode of the current function.
Parameters
-
easingMode: number
Defines the willing mode (EASINGMODE_EASEIN, EASINGMODE_EASEOUT or EASINGMODE_EASEINOUT)
Returns void
-
Easing function with an elastic shape (see link below).
https://easings.net/#easeInElastic
https://doc.babylonjs.com/babylon101/animations#easing-functions