fix(transitions): Disable transitions on Android 2, closes #780

By default transitions will be disabled on Android 2. To force
transitions to work on Android 2 add `enable-transitions` to the body
className.
This commit is contained in:
Adam Bradley
2014-05-02 14:02:28 -05:00
parent 45106a6acf
commit 9c58d47b2b

View File

@@ -2,7 +2,7 @@
/**
* Platform
* --------------------------------------------------
* Platform specific tweaks when in Cordova.
* Platform specific tweaks
*/
.platform-ios7.platform-cordova {
@@ -26,7 +26,7 @@
top: $bar-height + $ios7-statusbar-height;
}
.has-header,
.has-header,
.bar-subheader {
top: $bar-height + $ios7-statusbar-height;
}
@@ -45,3 +45,9 @@
margin-bottom: 20px;
}
}
.platform-android2:not(.enable-transitions) * {
// disable transitions on Android 2
-webkit-transition: none !important;
transition: none !important;
}