How can I remove the transitions from the Reveal.js slides created by Jupyter notebook?

Viewed 214

When I create Reveal.js slides using the "Download as" button in Jupyter notebooks, how can I remove the transition animation from the slide.

According to the Reveal.js page, I can remove the transitions by making these edits. But I don't know where this code that is to be edited can be found.

1 Answers

The configuration options, including the transition style, are specified in a <script> at the end of the HTML file:

<script>
...
    function(Reveal, RevealNotes){
        // Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration
        Reveal.initialize({
            controls: true,
            progress: true,
            history: true,
            transition: "slide",
            plugins: [RevealNotes]
        });
...
</script>

If you change the line above to transition: "none", that will remove the animation.

Related