# ElasticEase

Easing function with an elastic shape (see link below).

see

https://easings.net/#easeInElastic

see

http://doc.babylonjs.com/babylon101/animations#easing-functions

## Constructors

### constructor

Find examples in Playground
• new ElasticEase(oscillations?: number, springiness?: number): ElasticEase
• Instantiates an elastic easing function

see

https://easings.net/#easeInElastic

#### Parameters

• ##### Optional oscillations: number

Defines the number of oscillations

• ##### Optional springiness: number

Defines the amplitude of the oscillations

## Properties

### oscillations

Find examples in Playground
oscillations: number

Defines the number of oscillations

### springiness

Find examples in Playground
springiness: number

Defines the amplitude of the oscillations

### Static EASINGMODE_EASEIN

Find examples in Playground
EASINGMODE_EASEIN: number

Interpolation follows the mathematical formula associated with the easing function.

### Static EASINGMODE_EASEINOUT

Find examples in Playground
EASINGMODE_EASEINOUT: number

Interpolation uses EaseIn for the first half of the animation and EaseOut for the second half.

### Static EASINGMODE_EASEOUT

Find examples in Playground
EASINGMODE_EASEOUT: number

Interpolation follows 100% interpolation minus the output of the formula associated with the easing function.

## Methods

### ease

Find examples in Playground
• ease(gradient: number): number
• 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

### getEasingMode

Find examples in Playground
• getEasingMode(): number

### setEasingMode

Find examples in Playground
• setEasingMode(easingMode: number): void
• Sets the easing mode of the current function.

#### Parameters

• ##### easingMode: number

Defines the willing mode (EASINGMODE_EASEIN, EASINGMODE_EASEOUT or EASINGMODE_EASEINOUT)

#### Returns void

Generated using TypeDoc