From 6c8becc51b9cc1ef5078af0a92ea5161244458eb Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Fri, 17 Oct 2014 09:02:07 +0200 Subject: [PATCH] add video and iframe backgrounds to readme --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b2bab3d..abc059f 100644 --- a/README.md +++ b/README.md @@ -385,7 +385,7 @@ Reveal.addEventListener( 'somestate', function() { ### Slide Backgrounds -Slides are contained within a limited portion of the screen by default to allow them to fit any display and scale uniformly. You can apply full page background colors or images by applying a ```data-background``` attribute to your ```
``` elements. Below are a few examples. +Slides are contained within a limited portion of the screen by default to allow them to fit any display and scale uniformly. You can apply full page backgrounds outside of the slide area by adding a ```data-background``` attribute to your ```
``` elements. Four different types of backgrounds are supported: color, image, video and iframe. Below are a few examples. ```html
@@ -397,6 +397,12 @@ Slides are contained within a limited portion of the screen by default to allow

This background image will be sized to 100px and repeated.

+
+

Video. Multiple sources can be defined using a comma separated list.

+
+
+

Embeds a web page as a background. Note that the page won't be interactive.

+
``` Backgrounds transition using a fade animation by default. This can be changed to a linear sliding transition by passing ```backgroundTransition: 'slide'``` to the ```Reveal.initialize()``` call. Alternatively you can set ```data-background-transition``` on any section with a background to override that specific transition.