Skip to content

Instantly share code, notes, and snippets.

View jbrown123's full-sized avatar
💭
Looking for a new opportunity

James Brown jbrown123

💭
Looking for a new opportunity
View GitHub Profile
@jbrown123
jbrown123 / reveal per-slide theme override.js
Last active May 11, 2019 05:01
Reveal.js - per-slide theme override using data-theme attribute
// the code below can be added to the end of your Reveal slide deck to implement
// per slide theme setting via the data-theme attribute
// I put this in right below the call to Reveal.initialize()
// the code is smart enough to restore the previous default theme
// (or slide specific theme) as you move forward and backward
// it also takes into account vertical slide stacks with a data-theme
// attribute on the outer <section> tag and allows individual vertical
// slides to specify their own override