Skip to content

Commit c64d9fb

Browse files
committed
"added impress-enabled and impress-disabled CSS classes used in impress initialization"
1 parent e06cda1 commit c64d9fb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

css/impress-demo.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ body { pointer-events: none; }
490490
margin-bottom: 10px;
491491
}
492492

493+
.impress-disabled .step,
493494
.impress-not-supported .step {
494495
position: relative;
495496
opacity: 1;

js/impress.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@
338338
root.addEventListener(transitionEnd, onTransitionEnd, false);
339339
canvas.addEventListener(transitionEnd, onTransitionEnd, false);
340340

341+
body.classList.remove("impress-disabled");
342+
body.classList.add("impress-enabled");
343+
341344
// get and init steps
342345
steps = $$(".step", root);
343346
steps.forEach( initStep );
@@ -494,6 +497,8 @@
494497
stepTo(getElementFromUrl() || steps[0]);
495498
}, false);
496499

500+
body.classList.add("impress-disabled");
501+
497502
return (roots[ "impress-root-" + rootId ] = {
498503
init: init,
499504
stepTo: stepTo,

0 commit comments

Comments
 (0)