From a400dd0c705db7510aeebaa03539bd199edd6ac6 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sat, 6 Apr 2013 12:18:25 -0400 Subject: support for transition speed settings (closes #392) --- js/reveal.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 8d48814..c56ee2b 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -73,6 +73,9 @@ var Reveal = (function(){ // Transition style transition: 'default', // default/cube/page/concave/zoom/linear/fade/none + // Transition speed + transitionSpeed: 'default', // default/fast/slow + // Script dependencies to load dependencies: [] }, @@ -340,6 +343,8 @@ var Reveal = (function(){ dom.wrapper.classList.add( config.transition ); + dom.wrapper.setAttribute( 'data-transition-speed', config.transitionSpeed ); + if( dom.controls ) { dom.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none'; } -- cgit v1.2.3