readme update for #505
This commit is contained in:
parent
0cb6eab979
commit
fe4315e912
1 changed files with 2 additions and 0 deletions
|
@ -370,6 +370,8 @@ The display order of fragments can be controlled using the ```data-fragment-inde
|
|||
|
||||
When a slide fragment is either shown or hidden reveal.js will dispatch an event.
|
||||
|
||||
Some libraries, like MathJax (see #505), get confused by the initially hidden fragment elements. Often times this can be fixed by calling their update or render function from this callback.
|
||||
|
||||
```javascript
|
||||
Reveal.addEventListener( 'fragmentshown', function( event ) {
|
||||
// event.fragment = the fragment DOM element
|
||||
|
|
Loading…
Reference in a new issue