Documentation

Documentation

Error

Error

Error

Incorrect cubic bezier length

Incorrect cubic bezier length

You've received the following message:

Cubic bezier arrays must contain four numerical values.

Incorrect cubic bezier length

You've defined a cubic bezier curve with an incorrect number of points.

animate(
  element,
  { x: 100 },
  { ease: [0.3, 0.05, 0.45, 0.9, 1] }
)

Solution

Cubic bezier curves must only contain four points. Use Motion Studio to visually design easing curves that are always syntactically valid.

Motion+

Motion+

Motion+

Level up your animations with Motion+

Unlock the full vault of 290+ Motion examples, premium APIs, private Discord and GitHub, and powerful VS Code animation editing tools.

One-time payment, lifetime updates.