support for transition speed settings (closes #392)

This commit is contained in:
Hakim El Hattab 2013-04-06 12:18:25 -04:00
parent 308987ee31
commit a400dd0c70
5 changed files with 58 additions and 18 deletions

View file

@ -100,7 +100,10 @@ Reveal.initialize({
rollingLinks: true,
// Transition style
transition: 'default' // default/cube/page/concave/zoom/linear/fade/none
transition: 'default', // default/cube/page/concave/zoom/linear/fade/none
// Transition speed
transitionSpeed: 'default', // default/fast/slow
});
```
@ -268,6 +271,10 @@ The global presentation transition is set using the ```transition``` config valu
<section data-transition="zoom">
<h2>This slide will override the presentation transition and zoom!</h2>
</section>
<section data-transition-speed="fast">
<h2>Choose from three transition speeds: default, fast or slow!</h2>
</section>
```
Note that this does not work with the page and cube transitions.