Problem Statement
When would you use keyframes instead of transitions?
Explanation
Use keyframes for multi-step animations like loading spinners or looping effects. Transitions are best for simple hover or focus changes.
Code Solution
SolutionRead Only
@keyframes bounce { 0%,100% { top:0; } 50% { top:-20px; } }