When this is turned on a control element will appear that enables users to pause and resume auto-sliding. Alternatively, sliding can be paused or resumed by pressing »a« on the keyboard. Sliding is paused automatically as soon as the user starts navigating. You can disable these controls by specifying ```autoSlideStoppable: false``` in your reveal.js config.
When this is turned on a control element will appear that enables users to pause and resume auto-sliding. Sliding is also paused automatically as soon as the user starts navigating. You can disable these controls by specifying ```autoSlideStoppable: false``` in your reveal.js config.
You can also override the slide duration for individual slides and fragments by using the ```data-autoslide``` attribute on individual sections or fragments:
You can also override the slide duration for individual slides by using the ```data-autoslide``` attribute on individual sections:
```html
```html
<sectiondata-autoslide="10000">This will remain on screen for 10 seconds</section>
<sectiondata-autoslide="2000">
<p>After 2 seconds the first fragment will be shown.</p>
<pclass="fragment"data-autoslide="10000">After 10 seconds the next fragment will be shown.</p>
<pclass="fragment">Now, the fragment is displayed for 2 seconds before the next slide is shown.</p>
</section>
```
```
Whenever the auto-slide mode is resumed or paused the ```autoslideresumed``` and ```autoslidepaused``` events are fired.
### Keyboard Bindings
### Keyboard Bindings
...
@@ -308,6 +312,7 @@ Reveal.prevFragment();
...
@@ -308,6 +312,7 @@ Reveal.prevFragment();
Reveal.nextFragment();
Reveal.nextFragment();
Reveal.toggleOverview();
Reveal.toggleOverview();
Reveal.togglePause();
Reveal.togglePause();
Reveal.toggleAutoSlide();
// Retrieves the previous and current slide elements
// Retrieves the previous and current slide elements