Understanding Bézier Curve

P0 (0, 0) | P1 (x1, y1) | P2 (x2, y2) | P3 (1, 1)

Animation starts at P0 and ends at P3

Values P1 and P2 control behavior of the animation

cubic-bezier(x1, y1, x2, y2)

Linear

x1 = 0.00 | y1 = 0.00

x2 = 1.00 | y2 = 1.00

Ease

x1 = 0.25 | y1 = 0.10

x2 = 0.25 | y2 = 1.00

Ease-In

x1 = 0.42 | y1 = 0.00

x2 = 1.00 | y2 = 1.00

Ease-Out

x1 = 0.00 | y1 = 0.00

x2 = 0.58 | y2 = 1.00

Ease-In-Out

x1 = 0.42 | y1 = 0.00

x2 = 0.58 | y2 = 1.00

cubic-bezier
(0.2, 0.8, 0.2, 0.8)

x1 = 0.20 | y1 = 0.80

x2 = 0.20 | y2 = 0.80