aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-08-11 16:32:15 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-08-11 16:32:15 -0400
commit49298e199189ceddece6b9e62e7d811df0f904ff (patch)
tree3cac7272d3618eede1dd36ab2a42111168e283bd /js/reveal.js
parentcc41aa91153eba78d60b04bba86d7e3ead1ff6ca (diff)
downloadfosdem-2018-presentation-49298e199189ceddece6b9e62e7d811df0f904ff.tar
fosdem-2018-presentation-49298e199189ceddece6b9e62e7d811df0f904ff.tar.gz
disable transitions while presentation loads
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index feb2a10..08fd474 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -218,6 +218,9 @@ var Reveal = (function(){
dom.wrapper = document.querySelector( '.reveal' );
dom.slides = document.querySelector( '.reveal .slides' );
+ // Prevent transitions while we're loading
+ dom.slides.classList.add( 'no-transition' );
+
// Background element
if( !document.querySelector( '.reveal .backgrounds' ) ) {
dom.background = document.createElement( 'div' );
@@ -444,6 +447,9 @@ var Reveal = (function(){
// Notify listeners that the presentation is ready but use a 1ms
// timeout to ensure it's not fired synchronously after #initialize()
setTimeout( function() {
+ // Enable transitions now that we're loaded
+ dom.slides.classList.remove( 'no-transition' );
+
dispatchEvent( 'ready', {
'indexh': indexh,
'indexv': indexv,