From 042fbde61baa76d2b6241c0ef3c7579b28f6e8c0 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 3 May 2018 11:02:36 +0200 Subject: [PATCH] data-background-content-opacity -> data-background-opacity --- README.md | 4 ++-- js/reveal.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9694d52..9d094a1 100644 --- a/README.md +++ b/README.md @@ -630,7 +630,7 @@ By default, background images are resized to cover the full page. Available opti | data-background-size | cover | See [background-size](https://developer.mozilla.org/docs/Web/CSS/background-size) on MDN. | | data-background-position | center | See [background-position](https://developer.mozilla.org/docs/Web/CSS/background-position) on MDN. | | data-background-repeat | no-repeat | See [background-repeat](https://developer.mozilla.org/docs/Web/CSS/background-repeat) on MDN. | -| data-background-content-opacity | 1 | Opacity of the background image on a 0-1 scale. 0 is transparent and 1 is fully opaque. | +| data-background-opacity | 1 | Opacity of the background image on a 0-1 scale. 0 is transparent and 1 is fully opaque. | ```html

Image

@@ -649,7 +649,7 @@ Automatically plays a full size video behind the slide. | data-background-video-loop | false | Flags if the video should play repeatedly. | | data-background-video-muted | false | Flags if the audio should be muted. | | data-background-size | cover | Use `cover` for full screen and some cropping or `contain` for letterboxing. | -| data-background-content-opacity | 1 | Opacity of the background video on a 0-1 scale. 0 is transparent and 1 is fully opaque. | +| data-background-opacity | 1 | Opacity of the background video on a 0-1 scale. 0 is transparent and 1 is fully opaque. | ```html
diff --git a/js/reveal.js b/js/reveal.js index ae1c4ae..e3bbb23 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -934,7 +934,7 @@ backgroundRepeat: slide.getAttribute( 'data-background-repeat' ), backgroundPosition: slide.getAttribute( 'data-background-position' ), backgroundTransition: slide.getAttribute( 'data-background-transition' ), - backgroundContentOpacity: slide.getAttribute( 'data-background-content-opacity' ) + backgroundOpacity: slide.getAttribute( 'data-background-opacity' ) }; // Main slide background element @@ -968,7 +968,7 @@ data.backgroundRepeat + data.backgroundPosition + data.backgroundTransition + - data.backgroundContentOpacity ); + data.backgroundOpacity ); } // Additional and optional background properties @@ -980,7 +980,7 @@ if( data.backgroundSize ) contentElement.style.backgroundSize = data.backgroundSize; if( data.backgroundRepeat ) contentElement.style.backgroundRepeat = data.backgroundRepeat; if( data.backgroundPosition ) contentElement.style.backgroundPosition = data.backgroundPosition; - if( data.backgroundContentOpacity ) contentElement.style.opacity = data.backgroundContentOpacity; + if( data.backgroundOpacity ) contentElement.style.opacity = data.backgroundOpacity; element.appendChild( contentElement ); container.appendChild( element );