ensure all future fragments are invisible #473
This commit is contained in:
parent
0cb6eab979
commit
bf864c7a0d
@ -1507,6 +1507,13 @@ var Reveal = (function(){
|
|||||||
else if( i > index ) {
|
else if( i > index ) {
|
||||||
// Any element subsequent to index is given the 'future' class
|
// Any element subsequent to index is given the 'future' class
|
||||||
element.classList.add( reverse ? 'past' : 'future' );
|
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
|
// If this element contains vertical slides
|
||||||
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user