From eb5b39e6850d5c7067a0cb9a113b60617c10f9d8 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 18 Jun 2013 08:37:06 -0400 Subject: support for background transition overrides --- js/reveal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 8015244..70c782c 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -274,7 +274,8 @@ var Reveal = (function(){ backgroundSize: slide.getAttribute( 'data-background-size' ), backgroundColor: slide.getAttribute( 'data-background-color' ), backgroundRepeat: slide.getAttribute( 'data-background-repeat' ), - backgroundPosition: slide.getAttribute( 'data-background-position' ) + backgroundPosition: slide.getAttribute( 'data-background-position' ), + backgroundTransition: slide.getAttribute( 'data-background-transition' ) }; var element = document.createElement( 'div' ); @@ -295,6 +296,7 @@ var Reveal = (function(){ if( data.backgroundColor ) element.style.backgroundColor = data.backgroundColor; if( data.backgroundRepeat ) element.style.backgroundRepeat = data.backgroundRepeat; if( data.backgroundPosition ) element.style.backgroundPosition = data.backgroundPosition; + if( data.backgroundTransition ) element.setAttribute( 'data-background-transition', data.backgroundTransition ); container.appendChild( element ); -- cgit v1.2.3