aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Szopka <bartek.szopka+github@gmail.com>2012-03-12 22:57:58 +0000
committerBartek Szopka <bartek.szopka+github@gmail.com>2012-03-12 22:57:58 +0000
commitc64d9fbf97650c439eaf18b3bd6f4eecbb3ba114 (patch)
treeee0a787bd05a4dd624fc95af09fd777245832f62
parente06cda174e58b6f678e321e0b23f827a51dfca0f (diff)
downloadimpress.js-c64d9fbf97650c439eaf18b3bd6f4eecbb3ba114.tar.gz
"added `impress-enabled` and `impress-disabled` CSS classes used in impress initialization"
-rw-r--r--css/impress-demo.css1
-rw-r--r--js/impress.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/css/impress-demo.css b/css/impress-demo.css
index 70e2c2a..777c220 100644
--- a/css/impress-demo.css
+++ b/css/impress-demo.css
@@ -490,6 +490,7 @@ body { pointer-events: none; }
margin-bottom: 10px;
}
+.impress-disabled .step,
.impress-not-supported .step {
position: relative;
opacity: 1;
diff --git a/js/impress.js b/js/impress.js
index aa29005..0801e74 100644
--- a/js/impress.js
+++ b/js/impress.js
@@ -338,6 +338,9 @@
root.addEventListener(transitionEnd, onTransitionEnd, false);
canvas.addEventListener(transitionEnd, onTransitionEnd, false);
+ body.classList.remove("impress-disabled");
+ body.classList.add("impress-enabled");
+
// get and init steps
steps = $$(".step", root);
steps.forEach( initStep );
@@ -494,6 +497,8 @@
stepTo(getElementFromUrl() || steps[0]);
}, false);
+ body.classList.add("impress-disabled");
+
return (roots[ "impress-root-" + rootId ] = {
init: init,
stepTo: stepTo,