Cubic-bezier()
The CSS cubic-bezier() function defines a timing function using a cubic Bézier curve specified by two control points.
CSS in Depth, Second Edition
The CSS cubic-bezier() function defines a timing function from the coordinates of two control points.
- How it is used
- Shapes CSS transition timing to match user responses, system events, fades, and expressive motion.
- How deep it goes
- Explains control-point editing, curve behavior, selection guidance, and a worked bounce example without developing formal curve mathematics.
- Examples
- Uses editable DevTools curves and navigation labels that slide, fade, overshoot, and settle.
- What you can do after
- Apply it via CSS to create reusable transition curves, including deceleration, acceleration, and controlled bounce.
Read how CSS in Depth, Second Edition explains cubic-bezier() →
Math for Web Design
cubic-bezier() is a CSS timing-function that defines an animation progression with a cubic Bézier curve.
- How it is used
- Shapes CSS transitions and animations so interactive motion feels fast, smooth, responsive, or deliberately exaggerated.
- How deep it goes
- Defines syntax, coordinate constraints, slope effects, and practical curve selection, but does not derive the Bézier equations.
- Examples
- Uses toggle switches, tooltips, shopping-cart bounce feedback, and fade-in animations to compare curve behavior.
- What you can do after
- Apply it in CSS to create, tune, and debug animation timing for interface feedback.
Also covered in
What to know first
- CSS transform propertyThe CSS transform property applies two-dimensional or three-dimensional geometric transformations, such as translation, rotation, scaling, and skewing, to an element’s rendering.
- timing functionA CSS timing function maps elapsed time to progress through a transition or animation.
Related concepts
- transitionused by · A CSS transition interpolates changes in a CSS property’s value over time when that value changes.
- Bézier curveproduces · A Bézier curve is a parametric curve whose shape is determined by control points.
- control pointhas part · A control point is a point whose position influences the shape, direction, or local behavior of a curve or other parametric geometric representation.
- CSSuses · CSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- timing functionimplements · A CSS timing function maps elapsed time to progress through a transition or animation.
- animation propertyconfigures · The CSS animation property is a shorthand property for configuring one or more animations on an element.
Questions about cubic-bezier()
What is cubic-bezier()?
The CSS cubic-bezier() function defines a timing function using a cubic Bézier curve specified by two control points.
Which Manning books explain cubic-bezier()?
CSS in Depth, Second Edition and Math for Web Design.
What should I know before learning cubic-bezier()?
Manning books that teach cubic-bezier() usually introduce CSS transform property and timing function first.
What are the parts of cubic-bezier()?
Cubic-bezier() includes control point.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

