On this page
will-change
Prev: `animation` | Up: motion | Next: functions
Rel: motion, Custom Properties & Animation Guide
Ref: MDN Web Docs — will-change
Tags: #public #web #css #properties #motion #tier/specialized
Syntax & Overview
will-change: transform;
Hints the browser to promote an element to its own compositor layer ahead of animation.
- Initial:
auto| Inherited: No | Animatable: No
Notes & Best Practices
- Performance escape hatch—use sparingly: Promotes an element to its own GPU layer, consuming video memory. Never put
will-change: transformon*or hundreds of list items.
Example
.drawer.is-animating { will-change: transform; }
Linked from
Related notes
- tuts/css/properties/motion/animation Linked here; links to this page; shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion Linked here; links to this page; shared tags: #css, #motion, #properties, #web
- tuts/css/properties/custom_properties_and_animation Linked here; shared tags: #css, #properties, #web
- tuts/css/functions Linked here; shared tags: #css, #web
- tuts/css/properties/motion/opacity shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion/transform shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/motion/transition shared tags: #css, #motion, #properties, #tier, #web
- tuts/css/properties/box_model/aspect-ratio shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/box-sizing shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/inline-size shared tags: #css, #properties, #tier, #web