English
HTML Embeds & p5.js
Embed custom interactive content directly on your slides — D3 visualizations, canvas animations, arbitrary HTML, or p5.js sketches.
HTML / D3 embed
- Click Embed in the toolbar.
- A code editor opens with a starter D3 scatter plot.
- Write any valid HTML — the content renders inside a sandboxed iframe.
- Click Apply to insert. The element previews live on the slide.
The embedded HTML is completely self-contained. It works in present mode, exported files, and shared links. External scripts (D3, Three.js, etc.) can be loaded via CDN.
Example output
p5.js sketches
- Click p5 in the toolbar.
- A code editor opens pre-loaded with the p5.js library.
- Write your p5.js sketch using
setup()anddraw(). - Click Apply. The sketch renders live on the slide.
Example output
Manim animations
- Click Manim in the toolbar.
- Write a Manim scene in the code editor.
- Click Render — the server renders the animation and embeds the video.
WARNING
Manim rendering requires the Manim package installed on the server. Rendering may take several seconds depending on complexity.
Tips
- HTML embeds receive
EMBED_WIDTHandEMBED_HEIGHTas JavaScript globals — use them to size your canvas responsively. - Press the Preview Slide button in the right panel to test your embed in present mode without navigating through the full deck.
- Embeds support mouse interaction in present mode — hover effects, click handlers, and scroll all work inside the iframe.