aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-11-18 10:36:48 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-11-18 10:36:48 +0100
commit833622edcd45a7721f7a76d93cc12a1284f60a0d (patch)
tree8039c045f435471df7097acb92bdb421cc6700c1 /README.md
parent822a9c937c902807e376713760e1f07845951d5a (diff)
downloadfreenode-live-2017-presentation-833622edcd45a7721f7a76d93cc12a1284f60a0d.tar
freenode-live-2017-presentation-833622edcd45a7721f7a76d93cc12a1284f60a0d.tar.gz
update parallax background docs #1436
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 8 insertions, 7 deletions
diff --git a/README.md b/README.md
index d0db0a3..52dcd22 100644
--- a/README.md
+++ b/README.md
@@ -179,10 +179,11 @@ Reveal.initialize({
// Parallax background size
parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px"
- // Amount to move parallax background (horizontal and vertical) on slide change
- // Number, e.g. 100
- parallaxBackgroundHorizontal: '',
- parallaxBackgroundVertical: ''
+ // Number of pixels to move the parallax background per slide
+ // - Calculated automatically unless specified
+ // - Set to 0 to disable movement along an axis
+ parallaxBackgroundHorizontal: null,
+ parallaxBackgroundVertical: null
});
```
@@ -466,9 +467,9 @@ Reveal.initialize({
// Parallax background size
parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px" - currently only pixels are supported (don't use % or auto)
- // Amount of pixels to move the parallax background per slide step,
- // a value of 0 disables movement along the given axis
- // These are optional, if they aren't specified they'll be calculated automatically
+ // Number of pixels to move the parallax background per slide
+ // - Calculated automatically unless specified
+ // - Set to 0 to disable movement along an axis
parallaxBackgroundHorizontal: 200,
parallaxBackgroundVertical: 50