@@ -139,23 +139,23 @@ body.grade-c {
139
139
}
140
140
141
141
@keyframes refresh-spin {
142
- 0% { transform : rotate (0 ); }
143
- 100% { transform : rotate (-180deg ); }
142
+ 0% { transform : translate3d ( 0 , 0 , 0 ) rotate (0 ); }
143
+ 100% { transform : translate3d ( 0 , 0 , 0 ) rotate (-180deg ); }
144
144
}
145
145
146
146
@-webkit-keyframes refresh-spin {
147
- 0% {-webkit-transform : rotate (0 ); }
148
- 100% {-webkit-transform : rotate (-180deg ); }
147
+ 0% {-webkit-transform : translate3d ( 0 , 0 , 0 ) rotate (0 ); }
148
+ 100% {-webkit-transform : translate3d ( 0 , 0 , 0 ) rotate (-180deg ); }
149
149
}
150
150
151
151
@keyframes refresh-spin-back {
152
- 0% { transform : rotate (-180deg ); }
153
- 100% { transform : rotate (0 ); }
152
+ 0% { transform : translate3d ( 0 , 0 , 0 ) rotate (-180deg ); }
153
+ 100% { transform : translate3d ( 0 , 0 , 0 ) rotate (0 ); }
154
154
}
155
155
156
156
@-webkit-keyframes refresh-spin-back {
157
- 0% {-webkit-transform : rotate (-180deg ); }
158
- 100% {-webkit-transform : rotate (0 ); }
157
+ 0% {-webkit-transform : translate3d ( 0 , 0 , 0 ) rotate (-180deg ); }
158
+ 100% {-webkit-transform : translate3d ( 0 , 0 , 0 ) rotate (0 ); }
159
159
}
160
160
161
161
// Scroll refresher (for pull to refresh)
@@ -185,11 +185,21 @@ body.grade-c {
185
185
}
186
186
}
187
187
188
+ .icon-refreshing ,
189
+ .icon-pulling {
190
+ width : 100% ;
191
+ -webkit-backface-visibility : hidden ;
192
+ -webkit-transform-style : preserve-3d ;
193
+ backface-visibility : hidden ;
194
+ transform-style : preserve-3d ;
195
+ }
188
196
.icon-pulling {
197
+ -webkit-transform : translate3d (0 ,0 ,0 ) rotate (0deg );
198
+ transform : translate3d (0 ,0 ,0 ) rotate (0deg );
189
199
@include animation-name (refresh- spin- back);
190
200
@include animation-duration (200ms );
191
201
@include animation-timing-function (linear );
192
- @include animation-fill-mode (both );
202
+ @include animation-fill-mode (none );
193
203
}
194
204
.icon-refreshing ,
195
205
.text-refreshing {
@@ -200,18 +210,11 @@ body.grade-c {
200
210
}
201
211
202
212
& .active {
203
- .icon-pulling ,
204
- .text-pulling {
205
- display : block ;
206
- }
207
213
.icon-pulling {
208
214
@include animation-name (refresh- spin);
215
+ -webkit-transform : translate3d (0 ,0 ,0 ) rotate (-180deg );
216
+ transform : translate3d (0 ,0 ,0 ) rotate (-180deg );
209
217
}
210
- .icon-refreshing ,
211
- .text-refreshing {
212
- display : none ;
213
- }
214
-
215
218
& .refreshing {
216
219
.icon-pulling ,
217
220
.text-pulling {
0 commit comments