Переглянути джерело

note about post-startup configuration

Hakim El Hattab 12 роки тому
батько
коміт
a9bef856b0
1 змінених файлів з 10 додано та 0 видалено
  1. 10 0
      README.md

+ 10 - 0
README.md

@@ -107,6 +107,16 @@ Reveal.initialize({
 
 Note that the new default vertical centering option will break compatibility with slides that were using transitions with backgrounds (`cube` and `page`). To restore the previous behavior, set `center` to `false`.
 
+The configuration can be update after initialization using the ```configure``` method:
+
+```javascript
+// Turn autoSlide off
+Reveal.configure({ autoSlide: 0 });
+
+// Start auto-sliding every 5s
+Reveal.configure({ autoSlide: 5000 });
+```
+
 
 ### Presentation Size