Skip to content

Instantly share code, notes, and snippets.

@Drarig29
Last active April 9, 2020 13:11
Show Gist options
  • Save Drarig29/089c2ecbe140caa67b4a63aafbfca692 to your computer and use it in GitHub Desktop.
Save Drarig29/089c2ecbe140caa67b4a63aafbfca692 to your computer and use it in GitHub Desktop.
reveal.js: goto() slide method
Reveal.goto = slideNumber => {
let indices = Reveal.getIndices(Reveal.getSlides()[slideNumber - 1]);
Reveal.slide(indices.h, indices.v);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment