Skip to content
Preptima
mediumConceptMidSeniorStaff

Why is animating transform cheaper than animating top, and when does promoting an element to its own compositor layer make things worse?

5 min readUpdated 2026-08-15Target archetype: Big Tech, Enterprise Captive, Product Startup

Answer

Short answer

Transform and opacity can be applied by the compositor to an already-rasterised layer, skipping style, layout and paint, and running off the main thread. Promotion buys that at the cost of memory, extra rasterisation and layers you forgot to retire.

Was this answer helpful?

Likely follow-ups

  • The design calls for an element's width to animate. What do you build instead, and what does the substitution cost?
  • A composited animation is smooth on a laptop and drops frames on a mid-range phone. Where do you look first?
  • How would you confirm from developer tools that an animation is running on the compositor rather than the main thread?
  • Two elements overlap and only one of them is promoted. Why might the browser promote the other one as well?

Related questions

Further reading

Related Topics