CSS Reference

Quick Reference

The cubic-bezier() function describes a curve that is defined by four points P0 (starting point/state), P1, P2, and P3 (ending point/state).

P0 is (0, 0) and represents the initial time and the initial state, P3 is (1, 1) and represents the final time and the final state.

div {
    width: 90px;
    height: 90px;
    background: red;
    transition: width 3s;
    transition-timing-function: cubic-bezier(0.1, 0.5, 1.0, 0.3);
}

Syntax

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

Values

ValueDescription
x1, y1, x2, y2 Numeric values; x1 and x2 must be a number from 0 to 1 (required)

CSS Notes:


We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.