🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.width and height
  2. B.top and left
  3. C.transform and opacity
  4. 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 →