will-change

A CSS hint that tells the browser an element is about to animate a given property, so it can prepare, for example by giving it its own compositor layer.

In more detail

Browsers already optimise common animations, so it is rarely needed. Use it sparingly and only just before animating; every promoted layer costs memory.

Related terms

Taught in

References