HTML & CSS · Middle · Question 68 of 75
Why is transition: all 0.3s considered a bad habit?
- ✓Correct answer: It animates every property that changes, including expensive or unintended ones like
widthorcoloron theme switch - 2
allis not valid intransition - 3It disables hardware acceleration
Explanation
List the properties explicitly (transition: transform 0.3s, opacity 0.3s). That keeps animations cheap and predictable.