Skip to content

Embed API

Your presentations can be embedded on another web page, like a blog post or personal website. When you embed a presentation from Slides you can communicate with it using our embed API. This allows you to do things like showing content related to the current slide or adding your own controls for jumping to specific slides.

Messages are sent and received using JavaScript and the postMessage API. To enable this you'll need to append "postMessageEvents=true" to your embed URL, like so: https://slides.com/news/make-better-presentations/embed?postMessageEvents=true

You can find a full list of all available API methods here: https://revealjs.com/api/

Below is a working example where the parent page sends messages to and receives messages from a presentation. Click the "JS" tab to take a look at the source and comments.

View on CodePen

Feedback and Knowledge Base