Sfoglia il codice sorgente

Merge branch 'issue-1324' of https://github.com/mojavelinux/reveal.js into dev

Hakim El Hattab 7 anni fa
parent
commit
8a0dca2ba0
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      js/reveal.js

+ 4 - 1
js/reveal.js

@@ -49,6 +49,9 @@
 			minScale: 0.2,
 			maxScale: 2.0,
 
+            // Value of the display CSS property applied to current slide to make it visible
+            display: 'block',
+
 			// Display controls in the bottom right corner
 			controls: true,
 
@@ -2994,7 +2997,7 @@
 	function showSlide( slide ) {
 
 		// Show the slide element
-		slide.style.display = 'block';
+		slide.style.display = config.display;
 
 		// Media elements with data-src attributes
 		toArray( slide.querySelectorAll( 'img[data-src], video[data-src], audio[data-src]' ) ).forEach( function( element ) {