HTML & CSS · Middle · Question 14 of 75

Which properties are best to animate for smooth 60 FPS?

Explanation

transform and opacity are usually handled at the compositing stage and don't trigger layout or paint. Animating width, top or margin forces the browser to recalculate layout every frame, causing jank. That's why you move things with translate, not left.

Further reading

Problem with a question

HTML & CSS · Middle · question 14

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz