Skip to content

Cubic Bézier

An easing curve as defined in 8.6.

json
{
  "linear": {
    "$type": "cubicBezier",
    "$value": [0, 0, 1, 1]
  },
  "easeOutCubic": {
    "$type": "cubicBezier",
    "$value": [0.33, 1, 0.68, 1]
  },
  "easeInCubic": {
    "$type": "cubicBezier",
    "$value": [0.32, 0, 0.67, 0]
  },
  "easeInOutCubic": {
    "$type": "cubicBezier",
    "$value": [0.65, 0, 0.35, 1]
  }
}
yaml
linear:
  $type: cubicBezier
  $value:
    - 0
    - 0
    - 1
    - 1
easeOutCubic:
  $type: cubicBezier
  $value:
    - 0.33
    - 1
    - 0.68
    - 1
easeInCubic:
  $type: cubicBezier
  $value:
    - 0.32
    - 0
    - 0.67
    - 0
easeInOutCubic:
  $type: cubicBezier
  $value:
    - 0.65
    - 0
    - 0.35
    - 1
PropertyTypeDescription
$typestringRequired. "cubicBezier"
$value[number, number, number, number]Required. An array of four numbers [𝑥1, 𝑦1, 𝑥2, 𝑦2] that behaves the same as a CSS easing function.
$descriptionstring(Optional) A description of this token and its intended usage.

See also

Tips & recommendations

  • For a list of common easing functions, refer to easings.net.
  • For most UI animations, prefer ease-out curves, though in some instances linear or ease-in curves help (guide).