The transition-duration property defines the length of time that a transition takes.

  • Initial value0s
  • Applies toAll elements, :before and :after pseudo elements
  • InheritedNo
  • MediaInteractive
  • Computed valueSame as specified value
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript syntaxobject.style.transitionDuration
Formal syntax: <time> [, <time>]* 

transition-duration: <time>;
  • <time>The amount of time the transition from the old value of a property to the new value should take. A time of 0s indicates that no transition will happen, that is the switch between the two states will be instantaneous. A negative value for the time renders the declaration invalid.
.class {
   transition-duration:10s;
}
?Firefox?Explorer?Chrome?Safari?Opera


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.