bubble has-light-background to .reveal container

edit
Hakim El Hattab 2014-09-09 17:51:36 +02:00
parent 2479883d3c
commit bc2974fef8
1 changed files with 9 additions and 0 deletions

View File

@ -2463,6 +2463,15 @@
}
// If the slide has a light background, bubble that up as a
// class to .reveal container
if( currentSlide && currentSlide.classList.contains( 'has-light-background' ) ) {
dom.wrapper.classList.add( 'has-light-background' );
}
else {
dom.wrapper.classList.remove( 'has-light-background' );
}
// Allow the first background to apply without transition
setTimeout( function() {
dom.background.classList.remove( 'no-transition' );