← Quiz: CSS Variables and Animations: all 10 questions
Quiz: CSS Variables and Animations · Question 7 of 10
Which pair of properties is cheapest for the browser to animate?
Which pair of properties is cheapest for the browser to animate?
- A.width and height
- B.top and left
- C.transform and opacity
- D.margin and padding
Answer & explanation
Correct answer: transform and opacity
They usually need only compositing, without layout or paint.
Can you get the rest right without peeking?
Take the timed Quiz: CSS Variables and Animations quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →