Created
March 31, 2014 22:09
-
-
Save cfjedimaster/9903495 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
I used your style, your header div, but with a slide like this | |
<section data-state="showHeader" data-header="custom head"> | |
<p>Hello</p> | |
</section> | |
*/ | |
Reveal.addEventListener( 'slidechanged', function( event ) { | |
// event.previousSlide, event.currentSlide, event.indexh, event.indexv | |
if(event.currentSlide.dataset.header) { | |
myHead.innerHTML = event.currentSlide.dataset.header; | |
} | |
} ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment