aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab2013-10-27 16:39:20 -0400
committerHakim El Hattab2013-10-27 16:39:20 -0400
commit3ad4320f61b42c1957cfeb9442347fec1d06e113 (patch)
tree58045dc7fcf86eba808a5dfd24289b4091446dc8 /README.md
parent9dfaf8815ac96633c19b60a25852a3845f0212be (diff)
documentation for iframe post messages
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index f08ba78..f14be65 100644
--- a/README.md
+++ b/README.md
@@ -493,6 +493,8 @@ Add `data-autoplay` to your media element if you want it to automatically start
<video data-autoplay src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"></video>
```
+Additionally the framework automatically pushes two [post messages](https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage) to all iframes, ```slide:start``` when the slide containing the iframe is made visible and ```slide:stop``` when it is hidden.
+
### Stretching elements
Sometimes it's desirable to have an element, like an image or video, stretch to consume as much space as possible within a given slide. This can be done by adding the ```.stretch``` class to an element as seen below: