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.

/* 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;
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC