Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Per slide transitions #182

Closed
podiki opened this Issue Dec 17, 2015 · 1 comment

Comments

Projects
None yet
1 participant

podiki commented Dec 17, 2015

Reveal.js supports changing the transition on a per slide level (both in and out) through the data-transition property. If we try this in org-reveal however, the proper code seems to be exported, but it does not work. This is possibly related to horizontal versus vertical slides. The output of org-reveal will wrap a single top level slide in an additional <section> (for containing vertical subslides), but this seems to foul up data-transition. Removing the extra <section> makes this work, but is probably not the correct solution in general.

Example:

* Test slide
:PROPERTIES:
:REVEAL_DATA_TRANSITION: zoom
:END:
Sample Text

Relevant part of the output:

<section>
<section id="slide-orgheadline1" data-transition="slide">
<h2 id="orgheadline1"><span class="section-number-2">1</span> Test slide</h2>
<p>
Sample Text
</p>
</section>
</section>

podiki commented Dec 17, 2015

Note that as a vertical slide it appears to work, here's an example (different transition because I found it hard to tell otherwise):

* Parent slide
** Test slide
:PROPERTIES:
:REVEAL_DATA_TRANSITION: none
:END:
Sample Text

with relevant html output:

<section>
<section id="slide-orgheadline2">
<h2 id="orgheadline2"><span class="section-number-2">1</span> Parent slide</h2>
<div class="outline-text-2" id="text-1">
</div></section>
<section id="slide-orgheadline1" data-transition="none">
<h3 id="orgheadline1"><span class="section-number-3">1.1</span> Test slide</h3>
<p>
Sample Text
</p>
</section>
</section>

@yjwen yjwen closed this in a8e841a May 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment