`will-change`: preparing the browser in advance
Use it as a hint, not as decoration.
The `will-change` property tells the browser that a property such as `transform` or `opacity` is likely to change soon. That gives the engine a chance to prepare optimizations before the animation starts.
A common pattern is `will-change: transform, opacity;` on an element that is about to animate in. This can remove the small hesitation that sometimes appears at the start of a heavy motion effect.
The catch is memory cost. Extra compositing layers are not free, so `will-change` should be reserved for elements that genuinely benefit from it instead of being sprayed across the whole page.