File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -630,7 +630,7 @@ By default, background images are resized to cover the full page. Available opti
630
630
| data-background-size | cover | See [ background-size] ( https://developer.mozilla.org/docs/Web/CSS/background-size ) on MDN. |
631
631
| data-background-position | center | See [ background-position] ( https://developer.mozilla.org/docs/Web/CSS/background-position ) on MDN. |
632
632
| data-background-repeat | no-repeat | See [ background-repeat] ( https://developer.mozilla.org/docs/Web/CSS/background-repeat ) on MDN. |
633
- | data-background-content- opacity | 1 | Opacity of the background image on a 0-1 scale. 0 is transparent and 1 is fully opaque. |
633
+ | data-background-opacity | 1 | Opacity of the background image on a 0-1 scale. 0 is transparent and 1 is fully opaque. |
634
634
``` html
635
635
<section data-background-image =" http://example.com/image.png" >
636
636
<h2 >Image</h2 >
@@ -649,7 +649,7 @@ Automatically plays a full size video behind the slide.
649
649
| data-background-video-loop | false | Flags if the video should play repeatedly. |
650
650
| data-background-video-muted | false | Flags if the audio should be muted. |
651
651
| data-background-size | cover | Use ` cover ` for full screen and some cropping or ` contain ` for letterboxing. |
652
- | data-background-content- opacity | 1 | Opacity of the background video on a 0-1 scale. 0 is transparent and 1 is fully opaque. |
652
+ | data-background-opacity | 1 | Opacity of the background video on a 0-1 scale. 0 is transparent and 1 is fully opaque. |
653
653
654
654
``` html
655
655
<section data-background-video =" https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.mp4,https://s3.amazonaws.com/static.slid.es/site/homepage/v1/homepage-video-editor.webm" data-background-video-loop data-background-video-muted >
Original file line number Diff line number Diff line change 934
934
backgroundRepeat : slide . getAttribute ( 'data-background-repeat' ) ,
935
935
backgroundPosition : slide . getAttribute ( 'data-background-position' ) ,
936
936
backgroundTransition : slide . getAttribute ( 'data-background-transition' ) ,
937
- backgroundContentOpacity : slide . getAttribute ( 'data-background-content -opacity' )
937
+ backgroundOpacity : slide . getAttribute ( 'data-background-opacity' )
938
938
} ;
939
939
940
940
// Main slide background element
968
968
data . backgroundRepeat +
969
969
data . backgroundPosition +
970
970
data . backgroundTransition +
971
- data . backgroundContentOpacity ) ;
971
+ data . backgroundOpacity ) ;
972
972
}
973
973
974
974
// Additional and optional background properties
980
980
if ( data . backgroundSize ) contentElement . style . backgroundSize = data . backgroundSize ;
981
981
if ( data . backgroundRepeat ) contentElement . style . backgroundRepeat = data . backgroundRepeat ;
982
982
if ( data . backgroundPosition ) contentElement . style . backgroundPosition = data . backgroundPosition ;
983
- if ( data . backgroundContentOpacity ) contentElement . style . opacity = data . backgroundContentOpacity ;
983
+ if ( data . backgroundOpacity ) contentElement . style . opacity = data . backgroundOpacity ;
984
984
985
985
element . appendChild ( contentElement ) ;
986
986
container . appendChild ( element ) ;
You can’t perform that action at this time.
0 commit comments