property

Will change — CSS reference

A hint that a property is likely to change. It can create stacking contexts or containing blocks in advance of an actual transform. Do not add it indiscriminately: retaining optimization resources can cost memory, and layer promotion is not guaranteed.

Formal Syntax & Structure

css syntaxcss
will-change: transform;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>will-change</title><style>body{margin:8px;background:white;color:black;font:16px/20px sans-serif}*{box-sizing:content-box}#a{margin:40px;will-change:transform;width:120px;height:70px}#b{position:fixed;left:0;top:0;width:20px;height:20px}</style><body><div id="a"><span id="b">A</span></div></body></html>
CSS Reference