Open In App

What is the purpose of the will-change Property ?

Last Updated : 02 Feb, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

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:

  • Informs the browser about upcoming changes, allowing it to optimize rendering and memory usage.
  • Reduces performance overhead by preparing for specific changes rather than monitoring all properties.
  • Can take multiple properties as a comma-separated list.

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads