.action { transition: background-color 180ms ease, transform 180ms ease; }Only background and transform respond gradually over 180ms.
LESSON 88 OF 100
Animate background and transform without using transition: all.
The transition shorthand can define property, duration and timing function for each transition. Listing properties limits browser work and avoids accidentally animating other changes.
.action { transition: background-color 180ms ease, transform 180ms ease; }Only background and transform respond gradually over 180ms.
.action { transition: all 180ms ease; }all can include unintended properties and obscures exactly what is animated.
Set transition for background-color and transform, each with 180ms ease.
The comma-separated list creates two independent transitions and includes no other properties.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.