support for transition speed settings (closes #392)
This commit is contained in:
		| @@ -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
									
									
								
							
							
						
						
									
										4
									
								
								js/reveal.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user