Compositing
noun
say it: “kum-POZ-ih-ting” /kəmˈpɒzɪtɪŋ/
The browser's last drawing step: putting the separately painted layers of a page together into the picture you see. Changing transform or opacity often needs only this step, so it stays smooth.
What is compositing?
Compositing is combining painted layers into the final picture. Changes to transform and opacity can skip layout and paint, which is why they animate smoothly.
.drawer { transition: transform 0.3s; } /* smooth: only compositing changes */
In a sentence
- “Because moving the card with transform needs only compositing, it slides smoothly even on an old phone.”
Level: Master · More CSS terms at this level
Updated