Add a more flexible autoSlideMethod option
Auto-sliding will now use the method specified in the config if it is a function or default to navigateNext.
This commit is contained in:
parent
c0afa01e6a
commit
4a45557b57
2 changed files with 9 additions and 15 deletions
|
@ -152,10 +152,8 @@ Reveal.initialize({
|
|||
// Stop auto-sliding after user input
|
||||
autoSlideStoppable: true,
|
||||
|
||||
// When auto-sliding is active, do always proceed to the right
|
||||
// instead of the next slide which may be below (useful for
|
||||
// infinite loop presentations with hidden "bonus slides")
|
||||
autoSlideRight: false,
|
||||
// Use this method for navigation when auto-sliding
|
||||
autoSlideMethod: Reveal.navigateNext,
|
||||
|
||||
// Enable slide navigation via mouse wheel
|
||||
mouseWheel: false,
|
||||
|
@ -302,6 +300,8 @@ You can also override the slide duration for individual slides and fragments by
|
|||
</section>
|
||||
```
|
||||
|
||||
To override the method used for navigation when auto-sliding, you can specify the ```autoSlideMethod``` setting. To only navigate along the top layer and ignore vertical slides, set this to ```Reveal.navigateRight```.
|
||||
|
||||
Whenever the auto-slide mode is resumed or paused the ```autoslideresumed``` and ```autoslidepaused``` events are fired.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue