Skip to content

EasingFunction

Type definitions

type EasingFunction =
| "linear"
| "bounce"
| {
functionName: "cubic_bezier";
points: [number, number, number, number];
}

Properties

functionName

Duration of a transition in milliseconds.

  • Type: linear | bounce | cubic_bezier
  • Default value: linear
  • Supported values:
    • linear
    • bounce
    • cubic_bezier

points

Four numerical values in [0; 1] range used for cubic Bézier. The result is clamped to the range [0; 1].

  • Type: [number, number, number, number]