Skip to content

Commit

Permalink
resolves #1324 allow display property to be configured
Browse files Browse the repository at this point in the history
- allow display property apply to current slide to be configured
  • Loading branch information
mojavelinux committed Aug 8, 2015
1 parent b390e66 commit ccbc7ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit ccbc7ed

Please sign in to comment.