Hi,
we would love to use reveal.js functionality that allows to register events on e.g. fragments showing up like this:
Reveal.on('fragmentshown', (event) => {
// event.fragment = the fragment DOM element
});
Reveal.on('fragmenthidden', (event) => {
// event.fragment = the fragment DOM element
});
However, when using event listeners like this, nothing happens. To properly use it, we need to reinitialize Reveal first with:
which comes with a lot of ugly side effects (stretching the content weirdly every time you reload the page). Is there a chance to make Reveal accessible without initializing it first? Or is there another way how Reveal should be used?
Hi,
we would love to use reveal.js functionality that allows to register events on e.g. fragments showing up like this:
However, when using event listeners like this, nothing happens. To properly use it, we need to reinitialize Reveal first with:
which comes with a lot of ugly side effects (stretching the content weirdly every time you reload the page). Is there a chance to make Reveal accessible without initializing it first? Or is there another way how Reveal should be used?