Merge branch 'attributes' of https://github.com/VonC/reveal.js into dev

This commit is contained in:
Hakim El Hattab committed 2013-12-02 12:12:27 +01:00
commit 65bd155c34
6 files changed
+196 -154

No files matched your search

+5 -5
View File
@@ -60,25 +60,25 @@ You can write your content as a separate file and have reveal.js load it at runt
#### Element Attributes
Special syntax is available for adding attributes to Markdown elements. This is useful for fragments, amongst other things.
Special syntax (in html comment) is available for adding attributes to Markdown elements. This is useful for fragments, amongst other things.
```html
<section data-markdown>
<script type="text/template">
- Item 1 {.class="fragment" data-fragment-index="2"}
- Item 2 {.class="fragment" data-fragment-index="1"}
- Item 1 <!-- .element: class="fragment" data-fragment-index="2" -->
- Item 2 <!-- .element: class="fragment" data-fragment-index="1" -->
</script>
</section>
```
#### Slide Attributes
Special syntax is available for adding attributes to the slide `<section>` elements generated by your Markdown.
Special syntax (in html comment) is available for adding attributes to the slide `<section>` elements generated by your Markdown.
```html
<section data-markdown>
<script type="text/template">
<!-- slide-attributes: data-background="#ff0000" -->
<!-- slide: data-background="#ff0000" -->
Mardown content
</script>
</section>