Animations vs. Transitions
CSS transitions animate between exactly two statesand require a trigger — a hover, focus, or class change. CSS animations use @keyframes to define an arbitrary number of intermediate states and can auto-play on load, loop infinitely, and reverse direction. A transition is what you use for a button hover effect (0.2s color change). An animation is what you use for a skeleton loader that pulses continuously, a notification bell that shakes on arrival, or a step-by-step onboarding sequence with 5 distinct phases.