Namespace: easing

ol.easing


import easing from 'ol/easing';

Easing functions for ol.View#animate.

Methods

ol.easing.easeIn(t){number}

src/ol/easing.js, line 10

Start slow and speed up.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.

ol.easing.easeOut(t){number}

src/ol/easing.js, line 21

Start fast and slow down.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.

ol.easing.inAndOut(t){number}

src/ol/easing.js, line 32

Start slow, speed up, and then slow down again.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.

ol.easing.linear(t){number}

src/ol/easing.js, line 43

Maintain a constant speed over time.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.

ol.easing.upAndDown(t){number}

src/ol/easing.js, line 56

Start slow, speed up, and at the very end slow down again. This has the same general behavior as ol.easing.inAndOut, but the final slowdown is delayed.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.