diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-07-14 18:19:40 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-07-14 18:19:40 -0400 |
commit | bf864c7a0d52cccff02f81f479c0f4d6264fb093 (patch) | |
tree | 56021ef57f1377d491a4000ef28288aae842f701 /js/reveal.js | |
parent | 0cb6eab9795c1fef956a44722b4bfedb1e7378d5 (diff) | |
download | freenode-live-2017-presentation-bf864c7a0d52cccff02f81f479c0f4d6264fb093.tar freenode-live-2017-presentation-bf864c7a0d52cccff02f81f479c0f4d6264fb093.tar.gz |
ensure all future fragments are invisible #473
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index 02b8932..dbe9be6 100644 --- a/js/reveal.js +++ b/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 |