Skip to content

Commit 9c58d47

Browse files
author
Adam Bradley
committed
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.
1 parent 45106a6 commit 9c58d47

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: scss/_platform.scss

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Platform
44
* --------------------------------------------------
5-
* Platform specific tweaks when in Cordova.
5+
* Platform specific tweaks
66
*/
77

88
.platform-ios7.platform-cordova {
@@ -26,7 +26,7 @@
2626
top: $bar-height + $ios7-statusbar-height;
2727
}
2828

29-
.has-header,
29+
.has-header,
3030
.bar-subheader {
3131
top: $bar-height + $ios7-statusbar-height;
3232
}
@@ -45,3 +45,9 @@
4545
margin-bottom: 20px;
4646
}
4747
}
48+
49+
.platform-android2:not(.enable-transitions) * {
50+
// disable transitions on Android 2
51+
-webkit-transition: none !important;
52+
transition: none !important;
53+
}

0 commit comments

Comments
 (0)