fixed documentation on resize event
This commit is contained in:
parent
abee356e42
commit
126365627b
@ -41,6 +41,7 @@ reveal.js comes with a broad range of features including [nested slides](https:/
|
|||||||
- [Fullscreen mode](#fullscreen-mode)
|
- [Fullscreen mode](#fullscreen-mode)
|
||||||
- [Embedded media](#embedded-media)
|
- [Embedded media](#embedded-media)
|
||||||
- [Stretching elements](#stretching-elements)
|
- [Stretching elements](#stretching-elements)
|
||||||
|
- [Resize Event](#resize-event)
|
||||||
- [postMessage API](#postmessage-api)
|
- [postMessage API](#postmessage-api)
|
||||||
- [PDF Export](#pdf-export)
|
- [PDF Export](#pdf-export)
|
||||||
- [Theming](#theming)
|
- [Theming](#theming)
|
||||||
@ -963,7 +964,7 @@ Limitations:
|
|||||||
When reveal.js changes the scale of the slides it fires an resize event. You can subscribe to the event to resize your elements accordingly.
|
When reveal.js changes the scale of the slides it fires an resize event. You can subscribe to the event to resize your elements accordingly.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
Reveal.addEventListener( 'overviewshown', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } );
|
Reveal.addEventListener( 'resize', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } );
|
||||||
```
|
```
|
||||||
|
|
||||||
### postMessage API
|
### postMessage API
|
||||||
|
Loading…
Reference in New Issue
Block a user