Преглед изворни кода

adjust comment for display config value #1325

Hakim El Hattab пре 7 година
родитељ
комит
9f99ac8b84
2 измењених фајлова са 7 додато и 4 уклоњено
  1. 4 1
      README.md
  2. 3 3
      js/reveal.js

+ 4 - 1
README.md

@@ -270,7 +270,10 @@ Reveal.initialize({
 	// - Calculated automatically unless specified
 	// - Set to 0 to disable movement along an axis
 	parallaxBackgroundHorizontal: null,
-	parallaxBackgroundVertical: null
+	parallaxBackgroundVertical: null,
+
+	// The display mode that will be used to show slides
+	display: 'block'
 
 });
 ```

+ 3 - 3
js/reveal.js

@@ -49,9 +49,6 @@
 			minScale: 0.2,
 			maxScale: 2.0,
 
-            // Value of the display CSS property applied to current slide to make it visible
-            display: 'block',
-
 			// Display controls in the bottom right corner
 			controls: true,
 
@@ -163,6 +160,9 @@
 			// Number of slides away from the current that are visible
 			viewDistance: 3,
 
+			// The display mode that will be used to show slides
+			display: 'block',
+
 			// Script dependencies to load
 			dependencies: []