include references to previous/current sldie DOM elements in slidechange event
This commit is contained in:
parent
2b6c61060b
commit
6a03f65e97
4 changed files with 32 additions and 14 deletions
|
@ -81,11 +81,11 @@ Reveal.addEventListener( 'somestate', function() {
|
|||
|
||||
### Slide change event
|
||||
|
||||
An 'slidechanged' event is fired each time the slide is changed (regardless of state). The event object holds the index of the current slide.
|
||||
An 'slidechanged' event is fired each time the slide is changed (regardless of state). The event object holds the index values of the current slide as well as a reference to the previous and current slide HTML nodes.
|
||||
|
||||
```
|
||||
Reveal.addEventListener( 'slidechanged', function( event ) {
|
||||
// event.indexh & event.indexv
|
||||
// event.previousSlide, event.currentSlide, event.indexh, event.indexv
|
||||
} );
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue