will-change & GPU Layer Playground

Sixty lanterns over the field: swing them by left, transform or width, each frame’s time measured for real, will-change read back from the elements and their…

Why it matters

A smooth animation means every frame done in a few milliseconds. left, top and width force a new layout every frame; transform and opacity do not. will-change put everywhere wastes GPU memory and can move fixed elements.

The key idea

Pick the cheap property first, will-change second

Common mistakes

Try it in this playground