update parallax background docs #1436
This commit is contained in:
parent
822a9c937c
commit
833622edcd
15
README.md
15
README.md
|
@ -179,10 +179,11 @@ Reveal.initialize({
|
||||||
// Parallax background size
|
// Parallax background size
|
||||||
parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px"
|
parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px"
|
||||||
|
|
||||||
// Amount to move parallax background (horizontal and vertical) on slide change
|
// Number of pixels to move the parallax background per slide
|
||||||
// Number, e.g. 100
|
// - Calculated automatically unless specified
|
||||||
parallaxBackgroundHorizontal: '',
|
// - Set to 0 to disable movement along an axis
|
||||||
parallaxBackgroundVertical: ''
|
parallaxBackgroundHorizontal: null,
|
||||||
|
parallaxBackgroundVertical: null
|
||||||
|
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
@ -466,9 +467,9 @@ Reveal.initialize({
|
||||||
// Parallax background size
|
// Parallax background size
|
||||||
parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px" - currently only pixels are supported (don't use % or auto)
|
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,
|
// Number of pixels to move the parallax background per slide
|
||||||
// a value of 0 disables movement along the given axis
|
// - Calculated automatically unless specified
|
||||||
// These are optional, if they aren't specified they'll be calculated automatically
|
// - Set to 0 to disable movement along an axis
|
||||||
parallaxBackgroundHorizontal: 200,
|
parallaxBackgroundHorizontal: 200,
|
||||||
parallaxBackgroundVertical: 50
|
parallaxBackgroundVertical: 50
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user