update code style to match rest of reveal.js, disable parallax by default #595

This commit is contained in:
Hakim El Hattab 2013-09-15 14:48:54 -04:00
parent 2fc0dfa8e1
commit 347a907041
5 changed files with 40 additions and 38 deletions

View file

@ -108,10 +108,10 @@ Reveal.initialize({
// Transition style for full page backgrounds
backgroundTransition: 'default' // default/linear/none
// Parallax background image
parallaxBackgroundImage: '', // CSS syntax, e.g. "url('a.jpg')"
// Parallax background size
parallaxBackgroundSize: '', // CSS syntax, e.g. "3000px 2000px"
@ -307,13 +307,13 @@ If you want to use the parallax scrolling background, set the two following conf
```javascript
Reveal.initialize({
// Parallax background image
parallaxBackgroundImage: '', // CSS syntax, e.g. "url('a.jpg')"
// Parallax background size
parallaxBackgroundSize: '', // CSS syntax, e.g. "3000px 2000px" - currently only pixels are supported (don't use % or auto)
// This slide transition gives best results:
transition: linear