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.

Quick example

.icon {
  /* Fine-tuning the speed of the hover effect */
  transition-duration: 0.2s;
  transition-property: transform;
}

.icon:hover {
  transform: scale(1.2);
}

Quick facts

Initial value
0s
Inherited
No
Applies to
all elements and pseudo-elements
Animation type
notAnimatable

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.

Safe to use without fallbacks.

26+
16+
9+
12+
ESC