HTML & CSS · Middle · Question 13 of 75

How does transition differ from animation?

Explanation

A transition needs a trigger - a value change (:hover, class change) - and knows only the start and end. An animation is described with keyframes; it can start immediately, repeat (animation-iteration-count), run in reverse and pause (animation-play-state).

Further reading

Problem with a question

HTML & CSS · Middle · question 13

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz