Open In App

What is the purpose of the will-change Property ?

The will-change property in CSS is used to inform the browser that an element is expected to undergo changes in the specified properties, allowing the browser to optimize performance by preparing for these anticipated changes.

Note: The will-change property is applied to an element, specifying the properties that are expected to change.

Syntax:

/* Informing the browser that the 'transform' property will change */
.element {
  will-change: transform;
}

Features:

The features of will-change Property:

Article Tags :