10. Transitions: smooth changes
transition makes a change happen gradually instead of instantly. Give the property to animate, and a duration such as 0.3s.
Keep animations short and subtle. Respect users who prefer reduced motion.
Show example
.card {
transition: transform 0.3s;
}
.card:hover {
transform: translateY(-4px);
}
✍️ Your turn
Give .card a transition of background-color lasting 0.2s.