浏览代码

add config vars for #310 to readme

Hakim El Hattab 11 年之前
父节点
当前提交
f7a0cf7030
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      README.md

+ 15 - 0
README.md

@@ -55,6 +55,20 @@ At the end of your page you need to initialize reveal by running the following c
 
 ```javascript
 Reveal.initialize({
+
+	// The "normal" size of the presentation, aspect ratio will be preserved
+	// when the presentation is scaled to fit different resolutions. Can be
+	// specified using percentage units.
+	width: 960,
+	height: 700,
+
+	// Factor of the display size that should remain empty around the content
+	margin: 0.1,
+
+	// Bounds for smallest/largest possible scale to apply to content
+	minScale: 0.2,
+	maxScale: 1.4,
+
 	// Display controls in the bottom right corner
 	controls: true,
 
@@ -92,6 +106,7 @@ Reveal.initialize({
 
 	// Transition style
 	transition: 'default' // default/cube/page/concave/zoom/linear/fade/none
+
 });
 ```