Title slide background opacity. Document about background opacity.

This commit is contained in:
Yujie Wen 2019-07-19 00:25:56 +08:00
parent f32217eff2
commit 6434b31143
2 changed files with 9 additions and 2 deletions

View File

@ -362,19 +362,22 @@
:reveal_background: ./images/whale.jpg
:reveal_background_size: 200px
:reveal_background_repeat: repeat
:reveal_background_opacity: 0.2
:END:
Resize background image by setting property
=reveal_background_size= to a number.
Set property =reveal_background_repeat= to =repeat= to repeat
image on the background.
image on the background, =reveal_background_opacity= for the
background opacity, which is a value of 0-1.
#+BEGIN_SRC org
,*** Repeating Image Background
:PROPERTIES:
:reveal_background: ./images/whale.jpg
:reveal_background_size: 200px
:reveal_background_repeat: repeat
:reveal_background_opacity: 0.2
:END:
#+END_SRC
@ -385,7 +388,8 @@
* =REVEAL_TITLE_SLIDE_BACKGROUND=: A URL to the background image.
* =REVEAL_TITLE_SLIDE_BACKGROUND_SIZE=: HTML size specification, e.g. ~200px~.
* =REVEAL_TITLE_SLIDE_BACKGROUND_REPEAT=: set to ~repeat~ to repeat the image.
* =REVEAL_TITLE_SLIDE_BACKGROUND_REPEAT=: Set to ~repeat~ to repeat the image.
* =REVEAL_TITLE_SLIDE_BACKGROUND_OPACITY=: Set the background opacity.
*** Background for all slides
You can also configure the background for all slides in the presentation with:

View File

@ -72,6 +72,7 @@
(:reveal-title-slide-background-position "REVEAL_TITLE_SLIDE_BACKGROUND_POSITION" nil nil t)
(:reveal-title-slide-background-repeat "REVEAL_TITLE_SLIDE_BACKGROUND_REPEAT" nil nil t)
(:reveal-title-slide-background-transition "REVEAL_TITLE_SLIDE_BACKGROUND_TRANSITION" nil nil t)
(:reveal-title-slide-background-opacity "REVEAL_TITLE_SLIDE_BACKGROUND_OPACITY" nil nil t)
(:reveal-default-slide-background "REVEAL_DEFAULT_SLIDE_BACKGROUND" nil nil t)
(:reveal-default-slide-background-size "REVEAL_DEFAULT_SLIDE_BACKGROUND_SIZE" nil nil t)
(:reveal-default-slide-background-position "REVEAL_DEFAULT_SLIDE_BACKGROUND_POSITION" nil nil t)
@ -1219,6 +1220,8 @@ info is a plist holding export options."
(concat " data-background-repeat=\"" title-slide-background-repeat "\""))
(when title-slide-background-transition
(concat " data-background-transition=\"" title-slide-background-transition "\""))
(when title-slide-background-opacity
(concat " data-background-opacity=\"" title-slide-background-opacity "\""))
">"
(when title-slide-with-header
(let ((header (plist-get info :reveal-slide-header)))