transition-property
transition-property specifies which CSS property to animate. Use all to animate every changing property, or list specific properties for better performance.
transition-property specifies which CSS property to animate. Use all to animate every changing property, or list specific properties for better performance.
/* Animate only background-color */
.box {
transition-property: background-color;
}
/* Animate background and transform */
.card {
transition-property: background-color, transform;
}
/* Animate everything (less performant) */
.element {
transition-property: all;
}
Avoid transition: all in production — it may animate unexpected properties and causes performance issues.