Skip to content

Commit 3704a07

Browse files
committed
Set CSS3 transition properties on elements when they have the 'animate' class. This reduces the flash of the 'to' page on iOS.
1 parent 6b6b4f3 commit 3704a07

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

themes/default/jquery.mobile.transitions.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
to {-webkit-transform: rotate(360deg);}
1616
}
1717

18-
.in, .out {
18+
.in.animate, .out.animate {
1919
-webkit-transition: 350ms ease-in-out;
2020
-moz-transition: 350ms ease-in-out;
2121
-o-transition: 350ms ease-in-out;
@@ -162,11 +162,14 @@
162162
}
163163

164164
.flip {
165-
-webkit-transition-duration: .65s;
166165
-webkit-backface-visibility: hidden;
167166
-webkit-transform: translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
168167
}
169168

169+
.flip.in.animate, .flip.out.animate {
170+
-webkit-transition-duration: .65s;
171+
}
172+
170173
.flip.in,
171174
.flip.out.reverse.animate {
172175
-webkit-transform: rotateY(180deg) scale(.8);
@@ -195,7 +198,6 @@
195198
z-index: 0;
196199
}
197200

198-
199201
.pop.animate {
200202
-webkit-transition-property: -webkit-transform, opacity;
201203
-moz-transition-property: -moz-transform, opacity;

0 commit comments

Comments
 (0)