disable transitions while presentation loads
This commit is contained in:
		| @@ -218,6 +218,9 @@ var Reveal = (function(){ | |||||||
| 		dom.wrapper = document.querySelector( '.reveal' ); | 		dom.wrapper = document.querySelector( '.reveal' ); | ||||||
| 		dom.slides = document.querySelector( '.reveal .slides' ); | 		dom.slides = document.querySelector( '.reveal .slides' ); | ||||||
|  |  | ||||||
|  | 		// Prevent transitions while we're loading | ||||||
|  | 		dom.slides.classList.add( 'no-transition' ); | ||||||
|  |  | ||||||
| 		// Background element | 		// Background element | ||||||
| 		if( !document.querySelector( '.reveal .backgrounds' ) ) { | 		if( !document.querySelector( '.reveal .backgrounds' ) ) { | ||||||
| 			dom.background = document.createElement( 'div' ); | 			dom.background = document.createElement( 'div' ); | ||||||
| @@ -444,6 +447,9 @@ var Reveal = (function(){ | |||||||
| 		// Notify listeners that the presentation is ready but use a 1ms | 		// Notify listeners that the presentation is ready but use a 1ms | ||||||
| 		// timeout to ensure it's not fired synchronously after #initialize() | 		// timeout to ensure it's not fired synchronously after #initialize() | ||||||
| 		setTimeout( function() { | 		setTimeout( function() { | ||||||
|  | 			// Enable transitions now that we're loaded | ||||||
|  | 			dom.slides.classList.remove( 'no-transition' ); | ||||||
|  |  | ||||||
| 			dispatchEvent( 'ready', { | 			dispatchEvent( 'ready', { | ||||||
| 				'indexh': indexh, | 				'indexh': indexh, | ||||||
| 				'indexv': indexv, | 				'indexv': indexv, | ||||||
|   | |||||||
							
								
								
									
										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