Interactive online courses HTML Academy
2026-03-09 10:53 Diff

So what’s really hiding behind the names of linear, ease and other functions? Fairly complex mathematics of cubic Bézier curves.

In essence, named functions ease-in, ease-out and others are aliases for a universal curve description, for example:

cubic-bezier(0, 0, 1, 1) // this is linear cubic-bezier(0.42, 0, 1, 1) // this is ease

In cubic-bezier(x1, y1, x2, y2), the values of x and y are the coordinates of curve points on the graph. Valid x values fall within the range of 0 to 1.

There is a great service that helps understand the functional representation of Bézier curves without having to study math books.

If you click this link, you will find an entire collection of various easing functions based on Bézier curves.

Bézier curves allow us to create any forms of animation. Let’s try!