Module: ol/easing

ol/easing


import * as olEasing from 'ol/easing';

Methods

module:ol/easing.easeIn(t){number}

easing.js, line 12
import {easeIn} from 'ol/easing';

Start slow and speed up.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.

module:ol/easing.easeOut(t){number}

easing.js, line 23
import {easeOut} from 'ol/easing';

Start fast and slow down.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.

module:ol/easing.inAndOut(t){number}

easing.js, line 34
import {inAndOut} from 'ol/easing';

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.

module:ol/easing.linear(t){number}

easing.js, line 45
import {linear} from 'ol/easing';

Maintain a constant speed over time.

Name Type Description
t number

Input between 0 and 1.

Returns:
Output between 0 and 1.

module:ol/easing.upAndDown(t){number}

easing.js, line 58
import {upAndDown} from 'ol/easing';

Start slow, speed up, and at the very end slow down again. This has the same general behavior as module: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.