support for transition speed settings (closes #392)

This commit is contained in:
Hakim El Hattab
2013-04-06 12:18:25 -04:00
parent 308987ee31
commit a400dd0c70
5 changed files with 58 additions and 18 deletions

View File

@ -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';
}

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long