File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 238
238
if ( pageOut != null && pageOut . classList ) {
239
239
// do transition if there are no 'prevent'
240
240
if ( isPreventOut != true ) {
241
+ pageOut . classList . add ( params_out . form ) ;
242
+ // reflow
243
+ pageOut . offsetWidth = pageOut . offsetWidth ;
244
+ // go, go, go
245
+ pageOut . style . display = "block" ;
241
246
pageOut . classList . add ( "out" ) ;
242
- //if (options.animate !== false) {
243
- pageOut . classList . add ( params_out . form ) ;
244
- //}
245
247
pageOut . classList . remove ( "in" ) ;
246
248
// if reverse direction
247
249
pageOut . classList [ back ? "add" : "remove" ] ( "reverse" ) ;
248
- pageOut . style . display = "block" ;
249
250
250
251
// do fallback every time
251
252
var fallback = params_out . fallback ;
286
287
// reflow for fixing issues #80, #86
287
288
pageInto . offsetWidth = pageInto . offsetWidth ;
288
289
// go~ as normal
290
+ pageInto . style . display = "block" ;
289
291
pageInto . classList . remove ( "out" ) ;
290
292
pageInto . classList . add ( "in" ) ;
291
-
292
293
// if reverse direction
293
294
pageInto . classList [ back ? "add" : "remove" ] ( "reverse" ) ;
294
- pageInto . style . display = "block" ;
295
-
296
-
297
- //console.log(pageInto.className);
298
-
295
+
299
296
// do callback when come in first time
300
297
var onpagefirstinto = params_in . onpagefirstinto ;
301
298
if ( ! store [ pageid ] ) {
You can’t perform that action at this time.
0 commit comments