The transition-durationCSS property specifies the number of seconds or milliseconds a transition animation should take to complete. By default, the value is 0s, meaning that no animation will occur.
You may specify multiple durations; each duration will be applied to the corresponding property as specified by the transition-property property, which acts as a master list. If there are fewer durations specified than in the master list, the user agent repeat the list of durations. If there are more durations, the list is simply truncated to the right size. In both case the CSS declaration stays valid.
the unique non-ambiguous order defined by the formal grammar
Syntax
Values
<time>
Is a <time> denoting 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.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
1. From version 44: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Desktop
Mobile
Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
Android webview
Chrome for Android
Edge Mobile
Firefox for Android
IE mobile
Opera for Android
iOS Safari
Basic support
Full support
26
Full support
26
Full support
1
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
12
Full support
12
Full support
12
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
16
Full support
16
Full support
4
Prefixed
Prefixed Requires the vendor prefix: -moz-
Full support
49
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
44
PrefixedDisabled
Prefixed Requires the vendor prefix: -webkit-
Disabled From version 44: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Full support
10
Full support
12.1
Full support
12.1
Full support
15
Prefixed
Prefixed Requires the vendor prefix: -webkit-
No support
10 — 15
Prefixed
Prefixed Requires the vendor prefix: -o-
Full support
Yes
Full support
Yes
Full support
3
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
Yes
Full support
Yes
Full support
2.1
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
26
Full support
26
Full support
Yes
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
12
Full support
12
Full support
12
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
16
Full support
16
Full support
4
Prefixed
Prefixed Requires the vendor prefix: -moz-
Full support
49
Prefixed
Prefixed Requires the vendor prefix: -webkit-
Full support
44
PrefixedDisabled
Prefixed Requires the vendor prefix: -webkit-
Disabled From version 44: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Thanks! Please check your inbox to confirm your subscription.
If you haven’t previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.