Skip to content

Conversation

@teawithfruit
Copy link
Contributor

To handle the content before and after sliding, I've added two events which can be used with the following code.

Reveal.addEventListener( 'beforeslide', function( event ) {
  console.log(event);
});

Reveal.addEventListener( 'afterslide', function( event ) {
  console.log(event);
});

To handle the content before and after sliding, I've added two events which can be used with the following code.

Reveal.addEventListener( 'beforeslide', function( event ) {
  console.log(event);
});

Reveal.addEventListener( 'afterslide', function( event ) {
  console.log(event);
});
@hakimel
Copy link
Owner

hakimel commented Feb 2, 2017

This is a useful addition.

There shouldn't be any need to dispatch these events from the individual "navigate" methods though, right? Those methods all end up calling slide(), and you're already dispatching the same events from within the slide() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants