navigationMode documentation improvements
This commit is contained in:
parent
481208f43f
commit
23c2d2795c
1 changed files with 3 additions and 3 deletions
|
@ -285,7 +285,7 @@ Reveal.initialize({
|
||||||
// Change the presentation direction to be RTL
|
// Change the presentation direction to be RTL
|
||||||
rtl: false,
|
rtl: false,
|
||||||
|
|
||||||
// .
|
// See https://github.com/hakimel/reveal.js/#navigation-mode
|
||||||
navigationMode: 'default',
|
navigationMode: 'default',
|
||||||
|
|
||||||
// Randomizes the order of slides each time the presentation loads
|
// Randomizes the order of slides each time the presentation loads
|
||||||
|
@ -522,13 +522,13 @@ Slides can be nested within other slides to create vertical stacks (see [Markup]
|
||||||
<img src="https://static.slid.es/support/reveal.js-vertical-slides.gif" width="450">
|
<img src="https://static.slid.es/support/reveal.js-vertical-slides.gif" width="450">
|
||||||
|
|
||||||
#### Navigation Mode
|
#### Navigation Mode
|
||||||
You can finetune the reveal.js navigation behavior by using the `navigationMode` config option. This option supports the following values:
|
You can finetune the reveal.js navigation behavior by using the `navigationMode` config option. Note that these options are only useful for presnetations that use a mix of horizontal and vertical slides. The following navigation modes are available:
|
||||||
|
|
||||||
| Value | Description |
|
| Value | Description |
|
||||||
| :--------------------------- | :---------- |
|
| :--------------------------- | :---------- |
|
||||||
| default | Left/right arrow keys step between horizontal slides. Up/down arrow keys step between vertical slides. Space key steps through all slides (both horizontal and vertical). |
|
| default | Left/right arrow keys step between horizontal slides. Up/down arrow keys step between vertical slides. Space key steps through all slides (both horizontal and vertical). |
|
||||||
| linear | Removes the up/down arrows. Left/right arrows step through all slides (both horizontal and vertical). |
|
| linear | Removes the up/down arrows. Left/right arrows step through all slides (both horizontal and vertical). |
|
||||||
| grid | When this is enabled, stepping left/right from a vertical stack to an adjacent vertical stack will land you at the same vertical index.<br><br>Consider a deck with six slides ordered in two vertical stacks:<br>1.1 2.1<br>1.2 2.2<br>1.3 2.3<br><br>If you're on slide 1.3 and navigate right, you will normally move from 1.3 -> 2.1. With navigationMode set to "grid" the same navigation takes you from 1.3 -> 2.3. |
|
| grid | When this is enabled, stepping left/right from a vertical stack to an adjacent vertical stack will land you at the same vertical index.<br><br>Consider a deck with six slides ordered in two vertical stacks:<br>`1.1` `2.1`<br>`1.2` `2.2`<br>`1.3` `2.3`<br><br>If you're on slide 1.3 and navigate right, you will normally move from 1.3 -> 2.1. With navigationMode set to "grid" the same navigation takes you from 1.3 -> 2.3. |
|
||||||
|
|
||||||
### Touch Navigation
|
### Touch Navigation
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue