IT lexicon › Web › Composite Layer

Composite Layer

Web På svenska → Updated: 2026-11-15

A separate rendering layer that the browser keeps distinct from the rest of the page—enabling GPU-accelerated animation without repainting other elements.

Certain CSS properties—like transform, opacity, and filter—automatically create a composite layer. The browser can then animate this layer on the GPU without repainting any other part of the page. This is far faster than repeating layout and paint for every frame.

However, too many layers become problematic: each layer consumes memory and composition time. A rule of thumb is to be aware of when a layer is created, but not artificially delay it. will-change: transform can explicitly promote a layer early if you know an animation is coming.

← Back to the lexicon