Browse Source

ensure all future fragments are invisible #473

Hakim El Hattab 11 years ago
parent
commit
bf864c7a0d
2 changed files with 8 additions and 1 deletions
  1. 7 0
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 7 - 0
js/reveal.js

@@ -1507,6 +1507,13 @@ var Reveal = (function(){
 				else if( i > index ) {
 					// Any element subsequent to index is given the 'future' class
 					element.classList.add( reverse ? 'past' : 'future' );
+
+					var fragments = toArray( element.querySelectorAll( '.fragment.visible' ) );
+
+					// No fragments in future slides should be visible ahead of time
+					while( fragments.length ) {
+						fragments.pop().classList.remove( 'visible' );
+					}
 				}
 
 				// If this element contains vertical slides

File diff suppressed because it is too large
+ 1 - 1
js/reveal.min.js


Some files were not shown because too many files changed in this diff