Back to the index.
See also this useful page about animatable (and transitionable) properties.
The transition-property
is the CSS property (or properties) you want to transition. This page tests a few common ones, as well as some tricky ones.
The general rule is that the property must have numeric values: lengths, percentages, pixels, anything that’s expressed as a number. If it does not (like display or visibility) transitioning is impossible because the browser cannot calculate intermediate stages.
This is clearest with radial-gradient: this property is only transitionable if you want to go from one numeric value to another. 60% 100% (position) to 60% 50% works; farthest-corner to closest-corner does not.
This is the desktop table. See also the mobile table.
Click or touch the test elements. If they change styles immediately, transitions are not supported on the indicated CSS declaration. Instead, they should change slowly.
Then click or touch the test element again. It should transition back in most circumstances.
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 25 Win | 25 Mac | 14.8 Win | 14.8 Mac | ||||
background-color
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
background-position
Test |
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
border
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
This test is secretly two-fold: border-color and border-width. Note that the default styles have |
|||||||||||||||||||
border-radius
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
color
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | |||||||||||||
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 25 Win | 25 Mac | 14.8 Win | 14.8 Mac | ||||
display
Test
|
Fundamentally impossible | ||||||||||||||||||
The display values are exclusively keywords, and not numbers. Hence they cannot be transitioned: there are no intermediate values. |
|||||||||||||||||||
font-size
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
height
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
This test box has
height: auto .Instead, the element has to have a specific height. The test element on the left does: it has |
|||||||||||||||||||
left
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
The element must also have an explicit start value; so not giving it any and trusting the implied |
|||||||||||||||||||
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | |||||||||||||
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 25 Win | 25 Mac | 14.8 Win | 14.8 Mac | ||||
letter-spacing
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
FF needs initial value | |||||||||||||||||||
line-height
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
|
|||||||||||||||||||
margin-top
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
opacity
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
outline
Test
|
No | Incom |
Yes | Yes | Yes | Yes | Yes | ||||||||||||
|
|||||||||||||||||||
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | |||||||||||||
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 25 Win | 25 Mac | 14.8 Win | 14.8 Mac | ||||
padding-top
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
radial-gradient
Test |
No | Yes | No | No | No | No | No | ||||||||||||
As usual, the difference between the two states must be defined in numbers or it won’t work. Transitioning between 60% 100% and 60% 10% is possible, but between closest-corner and farthest-corner is not. Also, be sure to define the initial state entirely in numbers. Transitioning between 60% 100% and 60% top is possible; but not between 60% bottom and 60% 0%. Odd but true. |
|||||||||||||||||||
text-indent
Test Test Test Test Test Test Test Test Test Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
IE needs explicit value | |||||||||||||||||||
text-shadow
Test
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
width
All examples on the other test pages use width transitions.
|
No | Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||
This page contains no width test, but all other transition pages do. |
|||||||||||||||||||
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | |||||||||||||
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 25 Win | 25 Mac | 14.8 Win | 14.8 Mac |
Desktop browser test array 2.0.2; October 2014