aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVonC <vonc@laposte.net>2013-10-29 14:36:35 +0100
committerVonC <vonc@laposte.net>2013-11-04 16:31:58 +0100
commitefbb31cf295e9abcaed7a117a81ccb1a7f38e56e (patch)
tree9129f14dea39363f26080dd92375919d1c41a72f
parent1774de2113aacb7fc2f0b0537d691c940c17caf5 (diff)
downloadfosdem-2018-presentation-efbb31cf295e9abcaed7a117a81ccb1a7f38e56e.tar
fosdem-2018-presentation-efbb31cf295e9abcaed7a117a81ccb1a7f38e56e.tar.gz
Add mardown-based slide attribute examples.
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6963acb..3d549f4 100644
--- a/README.md
+++ b/README.md
@@ -352,6 +352,17 @@ Slides are contained within a limited portion of the screen by default to allow
Backgrounds transition using a fade animation by default. This can be changed to a linear sliding transition by passing ```backgroundTransition: 'slide'``` to the ```Reveal.initialize()``` call. Alternatively you can set ```data-background-transition``` on any section with a background to override that specific transition.
+Special syntax is available for adding attributes to Markdown-based generated `<slide>` element.
+
+```html
+<section data-markdown>
+ <script type="text/template">
+ <!-- slide-attributes: data-background="#ff0000" -->
+ Mardown content
+ </script>
+</section>
+```
+
### Parallax Background
If you want to use a parallax scrolling background, set the two following config properties when initializing reveal.js (the third one is optional).
@@ -390,6 +401,17 @@ The global presentation transition is set using the ```transition``` config valu
Note that this does not work with the page and cube transitions.
+Special syntax is available for adding attributes to Markdown-based generated `<slide>` element.
+
+```html
+<section data-markdown>
+ <script type="text/template">
+ <!-- slide-attributes: data-transition="concave" -->
+ Mardown content
+ </script>
+</section>
+```
+
### Internal links