CSS transition-duration Property Reference

The CSS transition-duration property is a standard property in CSS Transitions. Review its formal syntax, computed behavior, and practical declarations.

CSS transition-duration Property Reference

The CSS transition-duration property is a standard property in CSS Transitions. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

transition-duration overview

The CSS transition-duration property is a standard property in CSS Transitions. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

transition-duration formal syntax
FieldValue
Formal syntax<time>#
Initial value0s
Applies toallElementsAndPseudos
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typenotAnimatable
Mediainteractive
Specification groupCSS Transitions
StatusStandard

Practical examples

These declarations demonstrate valid ways to set transition-duration. The initial and inherit global keywords remain available even when a property-specific value is preferable.

transition-duration live example
CSS .reset-example { transition-duration: initial; } .inherit-example { transition-duration: inherit; } @supports (transition-duration: initial) { .supported { transition-duration: initial; } }

Description

The CSS transition-duration property is a standard property in CSS Transitions. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: transition-duration
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies