Browse Source

ready flag on .reveal container

Hakim El Hattab 8 years ago
parent
commit
6447b59ac5
2 changed files with 3 additions and 0 deletions
  1. 1 0
      README.md
  2. 2 0
      js/reveal.js

+ 1 - 0
README.md

@@ -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
 

+ 2 - 0
js/reveal.js

@@ -454,6 +454,8 @@
 
 			loaded = true;
 
+			dom.wrapper.classList.add( 'ready' );
+
 			dispatchEvent( 'ready', {
 				'indexh': indexh,
 				'indexv': indexv,