diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | js/reveal.js | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -348,6 +348,7 @@ Reveal.addEventListener( 'ready', function( event ) { } ); ``` +Note that we also add a `.ready` class to the `.reveal` element so that you can hook into this with CSS. ### Auto-sliding diff --git a/js/reveal.js b/js/reveal.js index 3f003d9..c37566a 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -454,6 +454,8 @@ loaded = true; + dom.wrapper.classList.add( 'ready' ); + dispatchEvent( 'ready', { 'indexh': indexh, 'indexv': indexv, |