From the course: CSS: Transforms and Transitions

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Steps and delays

Steps and delays - CSS Tutorial

From the course: CSS: Transforms and Transitions

Start my 1-month free trial

Steps and delays

- [Instructor] I'm going to look at another way to control transition timing through the use of step transitions and transition delays. So far, all of our transitions have employed very smooth changes, and to do that, the browser broke up the differences between the initial and end state styles into a very small set of discrete steps. But sometimes, we may want to have the browser use larger steps, and that's where a step transition becomes useful. Now, in this table I have a list of different step transitions, and the progress chart is shown on the left. I have the keyword step-start, and that's going to be a transition that stays in the end state throughout the entire duration of the transition. Or I can use the keyword step-end, and then the transition stays in the initial state for the entire duration. I can also use the steps function which breaks the transition into a series of steps. Now in this case I have six discrete steps, and then with the keyword start, the first step…

Contents