From 2cfcf08243256c29669a0e3b68c12fd38438c559 Mon Sep 17 00:00:00 2001 From: zeigerpuppy Date: Sun, 28 May 2017 12:49:18 +1000 Subject: [PATCH] some details for beginners using reveal.js and specific syntax used in hackmd's implementation --- Slide-Options.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Slide-Options.md diff --git a/Slide-Options.md b/Slide-Options.md new file mode 100644 index 0000000..29e065c --- /dev/null +++ b/Slide-Options.md @@ -0,0 +1,38 @@ +## Slide Separators +If you're getting started with reveal.js slides, there are a few things you need to know. + +There are two types of slides, those that transition horizontally and those that transition vertically (subslides). + +The following separators are used for each in the hackmd syntax: +``` +# First Slide + +--- + +# Next slide + +---- + +## Subslide +``` +as you can see, horizontal transitions are separated by `---` and vertical transitions by `----` + +## Basic YAML header +It's possible to customise the slide options using the YAML header in the slide markdown. + +eg: +``` +--- +title: Example Slide +tags: presentation +slideOptions: + theme: solarized + transition: 'fade' + # parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg' +--- +``` +make sure to have two spaces only at the start of the listed slide options. + +you can comment out options with a `#` + +