aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-10-13 15:51:13 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-10-13 15:51:13 -0400
commitfbbffb6f23c6f10d274d4a8ca8e8c41df011ce52 (patch)
tree03d4c1682ece663fdd673392140128e45185dd55 /README.md
parent2de43199ef9fe42704eb4cf2aeb19e585ad7e68f (diff)
downloadfreenode-live-2017-presentation-fbbffb6f23c6f10d274d4a8ca8e8c41df011ce52.tar
freenode-live-2017-presentation-fbbffb6f23c6f10d274d4a8ca8e8c41df011ce52.tar.gz
add auto-slide instructions to readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.md b/README.md
index 01579ba..8e2cc1e 100644
--- a/README.md
+++ b/README.md
@@ -205,6 +205,27 @@ Reveal.initialize({
});
```
+
+### Auto-sliding
+
+Presentations can be configure to progress through slides automatically, without any user input. To enable this you will need to tell the framework how many milliseconds it should wait between slides:
+
+```javascript
+// Slide every five seconds
+Reveal.configure({
+ autoSlide: 5000
+});
+```
+
+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 by using the ```data-autoslide``` attribute on individual sections:
+
+```html
+<section data-autoslide="10000">This will remain on screen for 10 seconds</section>
+```
+
+
### Keyboard Bindings
If you're unhappy with any of the default keyboard bindings you can override them using the ```keyboard``` config option: