Skip to main content

Function: linear()

linear(t): number

Defined in: animations/easing-functions/linear.ts:9

Easing function for "linear".

This function creates a linear easing effect, where the rate of change is constant.

Parameters

t

number

The input value (typically between 0 and 1).

Returns

number

The eased value, which is the same as the input value.