diff options
author | Hakim El Hattab | 2013-02-27 13:40:42 -0500 |
---|---|---|
committer | Hakim El Hattab | 2013-02-27 13:41:29 -0500 |
commit | 2e8e73a847a0cb4317722bde2e2ff4b5a0d93c97 (patch) | |
tree | c8b978afcb51786cb2bc0b6ae4befff0b1688ede /README.md | |
parent | 25f26bdc155a280a6cd15c5a3b96a518db402970 (diff) |
fragment sorting tweaks, sort attribute is now called data-fragment-index (#342)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -270,6 +270,16 @@ Multiple fragments can be applied to the same element sequentially by wrapping i </section> ``` +The display order of fragments can be controlled using the ```data-fragment-index``` attribute. + +```html +<section> + <p class="fragment" data-fragment-index="3">Appears last</p> + <p class="fragment" data-fragment-index="1">Appears first</p> + <p class="fragment" data-fragment-index="2">Appears second</p> +</section> +``` + ### Fragment events When a slide fragment is either shown or hidden reveal.js will dispatch an event. |