Expand All | Collapse All

CSS3 transition-property Property

Topic: CSS3 Properties ReferencePrev|Next


The transition-property CSS property specifies the names of the CSS properties to which a transition effect should be applied.

The following table summarizes the usages context and the version history of this property.

Default value: all
Applies to: All elements, ::before and ::after pseudo-elements
Inherited: No
Animatable: No. See animatable properties.
Version: New in CSS3


The syntax of the property is given with:

property1 [, property2, ... propertyN] | none | all | initial | inherit
where property is a CSS property name

The example below shows the transition-property property in action.

button {
    background: #fd7c2a;
    /* For Safari 3.0+ */
    -webkit-transition-property: background;
    -webkit-transition-duration: 2s;
    /* Standard syntax */
    transition-property: background;
    transition-duration: 2s;
button:hover {
    background: #3cc16e;

Property Values

The following table describes the values of this property.

Value Description
none No property will get a transition effect.
all Each property that supports transitions has the transition effect applied when a new value for the property is specified. This is default value.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element transition-property property.

Browser Compatibility

The transition-property property is supported in all major modern browsers.

Browsers Icon

Basic Support—

  • Firefox 4+ -moz-, 16+
  • Google Chrome 4+ -webkit-, 26+
  • Internet Explorer 10+
  • Apple Safari 3.1+ -webkit-, 6.1+
  • Opera 10.5+ -o-, 12.1+

Further Reading

See tutorial on: CSS3 Transitions.

Related properties: transition, transition-delay, transition-duration, transition-timing-function.

Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties