Q
What is the difference between a CSS transition and a CSS animation?
-
A
They are identical
-
B
Transitions use @keyframes
-
C
Animations require JavaScript
-
D
A transition animates between two states when a property changes; an animation runs keyframes that can loop without any trigger
Correct Answer:
D. A transition animates between two states when a property changes; an animation runs keyframes that can loop without any trigger
Explanation:
For example: transition: color 0.3s, compared with @keyframes spin { ... }.