CSS transitions make UI changes smooth and professional. When a property like color or transform changes (on :hover, class toggle, etc.), the transition smoothly interpolates between values instead of snapping instantly. Transition Properties transition-property (what to animate), transition-duration (how long), transition-timing-function (speed curve), and transition-delay (wait before starting). Shorthand: transition: transform 0.3s ease. Timing functions: ease (default, slow start/end), linear (constant speed), ease-in (slow start), ease-out (slow end), ease-in-out (slow both), or custom with cubic-bezier(). @keyframes Animations CSS @keyframes animations provide full control over multi-step sequences. Define named keyframes with from/to or percentages (0%, 50%, 100%) and apply them…
Key Takeaways
Transitions animate between two states smoothly.
Only animate transform and opacity for best performance.
@keyframes allow multi-step, looping animations.
Transforms: rotate, scale, translate, skew — no layout impact.