Transitions
Transitions allow you to alter styles not abruptly, but subtly and with intermediate steps.
The essence is that you define normal styles and special styles that should be applied after, for instance, a click, and that you then command the browser to use a transition for the style changes. This makes sure the property change is subtle and gradual.
This is the mobile table. See also the desktop table.
Last major update on 5 November 2014.
Basics
See below for a test
|
Yes |
-webkit- |
Yes |
-webkit- |
-webkit- |
No |
Yes |
-webkit- |
No |
Yes |
Yes |
- Android WebKit 4.2 and higher also support the unprefixed declarations.
|
|
Yes |
Yes |
Yes |
Yes |
Yes |
- |
Yes |
- |
Yes |
Yes |
|
|
Yes |
Yes |
Yes |
Yes |
Yes |
- |
Yes |
- |
Yes |
Yes |
|
|
Yes |
Yes |
Yes |
Yes |
Yes |
- |
Yes |
- |
Yes |
Almost |
Yes |
- Firefox on Android, but not on Firefox OS, handles quite a few transitions in a very ugly and jaggy way. See page for details.
|
|
Yes |
Incomplete |
Yes |
Yes |
Incomplete |
Yes |
- |
Yes |
- |
Yes |
Yes |
- Android 2 doesn’t support custom cubic bezier functions or step functions.
- Android 4, BlackBerry 6/7 don’t support custom cubic bezier functions.
|
|
Yes |
-webkit- |
Yes |
-webkit- |
-webkit- |
- |
Yes |
-webkit- |
- |
Yes |
Yes |
- Android WebKit 4.3 supports only the unprefixed event; anything before that only the prefixed one.
|
When certain declarations, such as left or border are entirely absent, does the browser correctly handle their
implied values?
|
left |
left |
left |
Yes |
left |
left |
- |
Yes |
left |
- |
Incomplete |
Incomplete |
- IE doesn’t transition outline and text-indent, while it should.
- Firefox doesn’t transition letter-spacing and outline-width, while it should.
|
Vendor prefixes and basic test
Here are tests for the vendor prefixes. Click on the test elements. These are also basic tests for transition support, and for transition-property: width
and transition-duration
.
Tested browsers
- iOS 7
- Default browser on iPad 2 with iOS 7.1.2
- iOS 8
- Default browser on iPhone 4S with iOS 8.1
- Android 2
- Default browser on HTC Legend, Android 2.2
- Default browser on Samsung Galaxy Pocket, Android 2.3.6
- Default browser on Sony Reader PRS-T3. I’ve heard it’s Android 2-based, but of course it’s nearly impossible to get some actual information.
- Android 4
- Default browser on Huawei C8813, Android 4.1.1
- Default browser on Samsung Galaxy Note I, Android 4.1.2
- Default browser on Sony Xperia S, Android 4.1.2
- Default browser on LG L5, Android 4.1.2
- Default browser on Wolfgang AT-AS45FW, Android 4.2.2 (see note below)
- Default browser on HTC One X, Android 4.2.2
- Default browser on HTC M8, Android 4.4.2
- Chromium Samsung
- Default browser on Samsung Galaxy S4, Android 4.4.2
- This is Samsung’s Chrome.
- Chromium Puffin
- 4.0 Free Edition on Samsung Galaxy Note, Android 4.1.2
- Chromium Cyanogen
- Default browser on Galaxy Nexus flashed with Cyanogenmod 11, Android 4.4.4
- This is Cyanogen’s Chrome.
- Chromium Xiaomi
- Default browser on Xiaomi M2, Android 4.1.1
- Chromium Opera
- 25 on LG L5, Android 4.1.2
- 25 on HTC M8, Android 4.4.2
- This is Opera Mobile.
- Chromium Google
- Default browser on Nexus 7, Android 4.4.2
- Default browser on Motorola Moto G, Android 4.4.4
- This is Google’s regular Chrome. I test it only on devices where it is the default browser.
- UC 9
- UC 9.9.5 on Huawei C8813, Android 4.1.1
- UC 9.9.6 on Xiaomi M2, Android 4.1.1
- The largest Chinese browser. This is the full Chinese variant, not the proxy. These browsers were pre-installed (next to Android WebKit; don’t ask me why).
- UC 10
- UC 10.0 on Samsung Galaxy S4, Android 4.4.2
- This is an English install. I don’t know if that matters, but it could.
- BlackBerry 6
- Default browser on BB Torch 9800 (OS6)
- BlackBerry 7
- Default browser on BB Torch 9810 (OS7)
- BlackBerry 10
- Default browser on BlackBerry Z10 (BB OS 10.1)
- A new BB10 version has been released, but my device cannot connect to the update server.
- This device has 1GB of internal memory instead of the customary 2GB, which may matter in performance tests.
- Nokia Xpress
- 5.5 on the Nokia Asha 311, S40.
- UC Mini
- 8.8 on HTC One X, Android 4.2.2
- 9.4 on Motorola Moto G, Android 4.4.2
- 9.4 on Wolfgang AT-AS45FW, Android 4.2.2 (see note below)
- Opera Mini
- 7.6 on Samsung Galaxy S4, Android 4.4.2
- 8.0 on BB Torch 9800 (OS6)
- 8.0.3 on iPad 2, iOS 7.1.2
- Opera Classic
- 12.10 on Samsung Galaxy Pocket, Android 2.3.6
- Nintendo
- Nintendo browser 3.0.3 on Wii U (OS version unfindable)
- Supposed to be based on NetFront, which in turn is WebKit-based nowadays.
- Dolphin
- Dolphin 11.23 with JetPack on Sony Xperia S, Android 4.1.2.
- Independent full browser for Android, as long as you install both Dolphin and the Jetpack extension.
- IE9
- Default browser on Nokia Lumia 800, Windows Phone 7.5.
- IE10
- Default browser on Nokia Lumia 520, Windows Phone 8.0.
- IE11
- Default browser on Nokia Lumia 820, Windows Phone 8.1 “Update”
- This is a developer phone. That might matter.
- Firefox Android
- 32 on LG L5, Android 4.1.2
- 32 on Samsung Galaxy S4, Android 4.4.2
- Firefox OS
- Default browser on T2Mobile Flame, the FFOS reference device. 1.3.0 prerelease
Wolfgang AT-AS45FW note: Wolfgang is a Dutch importer and re-brander of phones. In this particular case
they seem to have bought Chinese (? probably) phones, re-branded them, then re-sold them to the Whoop company, which
re-branded them and sold them to the Hema chain of supermarkets, which sells them to consumers as the Whoop Echo. Supply chain management FTW!