mirror of https://github.com/yjwen/org-reveal.git
Attach data-transition attribute at outer section
The attribute to override slide transitions must be attached to the outer section to have an effect.
This commit is contained in:
parent
2cdb4bb12a
commit
44ea78886e
11
ox-reveal.el
11
ox-reveal.el
|
@ -417,14 +417,19 @@ holding contextual information."
|
||||||
"</section>\n")))
|
"</section>\n")))
|
||||||
(if (<= level hlevel)
|
(if (<= level hlevel)
|
||||||
;; Add an extra "<section>" to group following slides
|
;; Add an extra "<section>" to group following slides
|
||||||
;; into vertical slide group.
|
;; into vertical slide group. Transition override
|
||||||
"<section>\n")
|
;; attributes are attached at this level, too.
|
||||||
|
(let ((attrs
|
||||||
|
(org-html--make-attribute-string
|
||||||
|
`(:data-transition ,(org-element-property :REVEAL_DATA_TRANSITION headline)))))
|
||||||
|
(if (string-empty-p attrs)
|
||||||
|
"<section>\n"
|
||||||
|
(format "<section %s>\n" attrs))))
|
||||||
;; Start a new slide.
|
;; Start a new slide.
|
||||||
(format "<section %s%s>\n"
|
(format "<section %s%s>\n"
|
||||||
(org-html--make-attribute-string
|
(org-html--make-attribute-string
|
||||||
`(:id ,(format "slide-%s" preferred-id)
|
`(:id ,(format "slide-%s" preferred-id)
|
||||||
:data-state ,(org-element-property :REVEAL_DATA_STATE headline)
|
:data-state ,(org-element-property :REVEAL_DATA_STATE headline)
|
||||||
:data-transition ,(org-element-property :REVEAL_DATA_TRANSITION headline)
|
|
||||||
:data-background ,(org-element-property :REVEAL_BACKGROUND headline)
|
:data-background ,(org-element-property :REVEAL_BACKGROUND headline)
|
||||||
:data-background-size ,(org-element-property :REVEAL_BACKGROUND_SIZE headline)
|
:data-background-size ,(org-element-property :REVEAL_BACKGROUND_SIZE headline)
|
||||||
:data-background-repeat ,(org-element-property :REVEAL_BACKGROUND_REPEAT headline)
|
:data-background-repeat ,(org-element-property :REVEAL_BACKGROUND_REPEAT headline)
|
||||||
|
|
Loading…
Reference in New Issue