adjustments to custom state events
This commit is contained in:
@ -114,7 +114,7 @@
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section data-state="blur">
|
||||
<section data-state="blurred">
|
||||
<h2>Global State</h2>
|
||||
<p>
|
||||
If you set <code>data-state="something"</code> on a slide, <code>"something"</code>
|
||||
@ -253,6 +253,12 @@
|
||||
transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
|
||||
});
|
||||
|
||||
// Example of binding an event to a state. This listener will trigger
|
||||
// when the slide with 'data-state="blurred"' is opened.
|
||||
document.querySelector( '#reveal' ).addEventListener( 'blurred', function() {
|
||||
|
||||
}, false );
|
||||
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user