Skip to content
Snippets Groups Projects
Commit bf864c7a authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

ensure all future fragments are invisible #473

parent 0cb6eab9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment