Skip to content

Expose Reveal functionality #175

@lsRic

Description

@lsRic

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:

Reveal.initialize()

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions