transition-duration
Specifies how long a transition should take to complete. A shorter duration makes changes feel snappy, while a longer one makes them feel smoother and slower.
It is documented as part of the CSS Transitions specification.
Syntax
/* Usage Example */
.icon {
/* Fine-tuning the speed of the hover effect */
transition-duration: 0.2s;
transition-property: transform;
}
.icon:hover{
transform: scale(1.2);
}
/* Global values */
transition-duration: inherit;
transition-duration: initial;
transition-duration: revert;
transition-duration: revert-layer;
transition-duration: unset;
transition-duration Browser support
Widely available
Since
2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
26+
16+
9+
12+