From ccbc7ed6bcd9a2fe9a8d6c651fdc8644ecc08ee6 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 7 Aug 2015 22:55:37 -0600 Subject: [PATCH] resolves #1324 allow display property to be configured - allow display property apply to current slide to be configured --- js/reveal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index ff5ea53..499d006 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -45,6 +45,9 @@ minScale: 0.2, maxScale: 1.5, + // 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, @@ -2721,7 +2724,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 ) {