Events

The DeckDeckGo deck triggers the following events:

EventEmitted valueDescription
slidesDidLoadstring[]Emitted when the deck and all slides have loaded. Emit the an ordered list of all the tag names of the slides.
slideNextDidAnimatevoidEmitted when the slide didn't change but an animation occurred towards the next slide.
slidePrevDidAnimatevoidEmitted when the slide didn't change but an animation occurred towards the previous slide.
slideNextDidChangenumberEmitted when the next slide has started. Emit the index of the new active slide.
slidePrevDidChangenumberEmitted when the previous slide has ended. Emit the index of the new active slide.
slideToChangenumberEmitted when a specific slide has been selected. Emit the index of the new selected slide.
slideDragnumberEmitted when the slider is actively being moved. Emit the transformX value of the deck.
slideWillChangenumberEmitted before the active slide has changed. Emit the transformX value of the deck.
deckDidLoadEmitted after slidesDidLoad when all slides have been processed by the core (lazy loading, clone actions, etc.)
mouseInactivitybooleanEmitted when the mouse is idle and will be hidden.