fragment sorting tweaks, sort attribute is now called data-fragment-index (#342)

This commit is contained in:
Hakim El Hattab committed 2013-02-27 13:41:29 -05:00
1 parent 25f26bdc15
commit 2e8e73a847
3 files changed
+53 -37

No files matched your search

+10
View File
@@ -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.