Documentation

Documentation

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.

Level up your animations with Motion+

Access to 100+ premium examples, exclusive APIs like Cursor, private Discord and GitHub, and powerful VS Code animation editing tools.

One-time payment, lifetime updates.

Stay in the loop

Subscribe for the latest news & updates.

Stay in the loop

Subscribe for the latest news & updates.

Stay in the loop

Subscribe for the latest news & updates.