![]() |
New Perspectives on HTML5 and CSS3, 8th Edition Tutorial 8 |
This page demonstrates how to create a timing function based on a Cubic Bézier curve.
Enter a duration length in the input box. Enter the parameter values for the Cubic Bézier
curve in the four input boxes for the function. Move your mouse pointer over the Start box
to compare the effect of different timings. Try the following Cubic Bézier curves:
cubic-bezier(1, 0, 0, 1)
cubic-bezier(0, 2, 1, -2)
cubic-beizer(1, 0, 1, -0.5)
Transition Graph | Cubic Bezier Curve |
---|---|
![]() ease |
cubic-bezier(0.25, 0.1, 0.25, 1) |
![]() linear |
cubic-bezier(0, 0, 1, 1) |
![]() ease-in |
cubic-bezier(0.42, 0, 1, 1) |
![]() ease-out |
cubic-bezier(0, 0, 0.58, 1) |
![]() ease-in-out |
cubic-bezier(0.42, 0, 0.58, 1) |
custom |
cubic-bezier(, , , ) |