CSS · Motion and transforms

will-change

Hints that a property will animate so the browser can optimise ahead. Use temporarily, never as a blanket rule.

Syntax
will-change: transform

Example

Try it

Notes

Overusing will-change wastes memory and can make performance worse.

More in this group

@keyframes animation animation-duration animation-iteration-count animation-name perspective prefers-reduced-motion transform

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course