On this page
  1. will-change
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

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.

Notes & Best Practices

Example

.drawer.is-animating { will-change: transform; }

Linked from

Related notes