Compositor Layers & GPU Animation Playground

The evening parade: the main thread is really kept busy; what still moves, transform, opacity, left or box-shadow? Each frame’s rendering work is timed, layer…

Why it matters

A stuttering animation almost always means the main thread was late with a frame. Choosing properties the compositor can run makes animation survive busy JavaScript. will-change helps prepare the layer early, but every layer costs memory.

The key idea

What the compositor can run keeps moving while the main thread stands still

Common mistakes

Try it in this playground