git.iko.soy/typeable/pandoc
on master help sign in
Add instructions for background images reveal.js (#4325)
commitf921b388699dc870d5190c55904d9732e9770874 authorJohn Muccigrosso <Jmuccigr@users.noreply.github.com> dateTue 13 Mar 2018, 12:17 (9 years ago) parent93228d5
1 file changed+41
MANUAL.txt+41
MANUAL.txt+41
@@ -4384,6 +4384,47 @@ the [Beamer User's Guide] may also be used: `allowdisplaybreaks`,
43844384`allowframebreaks`, `b`, `c`, `t`, `environment`, `label`, `plain`,
43854385`shrink`.
43864386
4387+Background in reveal.js
4388+-----------------------
4389+
4390+Background images can be added to self-contained reveal.js slideshows.
4391+
4392+For the same image on every slide, use the reveal.js configuration
4393+option `parallaxBackgroundImage` either in the YAML metadata block
4394+or as a command-line variable. You can also set `parallaxBackgroundHorizontal`
4395+and `parallaxBackgroundVertical` the same way and must also set
4396+`parallaxBackgroundSize` to have your values take effect.
4397+
4398+To set an image for a particular slide, add `{data-background-image="/path/to/image"}`
4399+to the first slide-level header on the slide (which may even be empty).
4400+
4401+In reveal.js's overview mode, the parallaxBackgroundImage will show up
4402+only on the first slide.
4403+
4404+Other background settings also work on individual slides, including
4405+`data-background-size`, `data-background-repeat`, `data-background-color`,
4406+`data-transition`, and `data-transition-speed`.
4407+
4408+See the [reveal.js documentation](https://github.com/hakimel/reveal.js#slide-backgrounds)
4409+for more details.
4410+
4411+For example:
4412+
4413+```
4414+---
4415+title: My Slideshow
4416+parallaxBackgroundImage: /path/to/my/background_image.png
4417+---
4418+
4419+## Slide One
4420+
4421+Slide 1 has background_image.png as its background.
4422+
4423+## {data-background-image="/path/to/special_image.jpg"}
4424+
4425+Slide 2 has a special image for its background, even though the header has no content.
4426+```
4427+
43874428Creating EPUBs with pandoc
43884429==========================
43894430