aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index adf7a3a..4375933 100644
--- a/README.md
+++ b/README.md
@@ -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.