From 15f24f7a9a4b9629b3d6054bd0ef199eaee8c4c6 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 4 Jun 2013 20:15:19 +0200 Subject: linear sliding transition option for full page backgrounds (#453) --- js/reveal.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 6e5f9e4..3d6e2da 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -79,6 +79,9 @@ var Reveal = (function(){ // Transition speed transitionSpeed: 'default', // default/fast/slow + // Transition style for full page slide backgrounds + backgroundTransition: 'default', // default/linear + // Script dependencies to load dependencies: [] }, @@ -415,6 +418,7 @@ var Reveal = (function(){ dom.wrapper.classList.add( config.transition ); dom.wrapper.setAttribute( 'data-transition-speed', config.transitionSpeed ); + dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition ); if( dom.controls ) { dom.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none'; -- cgit v1.2.3