Will-change
A CSS property that hints to the browser in advance that an element will soon be animated or changed, so it can prepare an optimization (e.g. lifting the element to its own GPU compositor layer). Powerful but easy to misuse.
Mechanic: will-change: transform tells the browser "this will be transformed soon" → it can promote the element to its own layer in advance that the GPU can animate smoothly, so the first animation frame doesn't stutter while the layer is created. Use case: elements you know will animate on hover/interaction. Big warnings: (1) don't overuse it — each promoted layer costs memory, and will-change on everything eats resources and can make the page slower; (2) ideally set it just before the animation (e.g. on hover) and remove it afterward, not permanently in CSS; (3) it's a hint, not a guarantee. Related: transform and opacity are the "cheap" properties to animate (compositing only, no relayout). A sharp but double-edged performance tool. Related to content-visibility and requestAnimationFrame.