Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
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
You can’t perform that action at this time.