Skip to content
ShowpieceDocs

The snippet, part by part

What the editor's snippet for a web page is, piece by piece, and what you can change in it.

The whole of it

For a demo called “Your demo” with steps, recorded 1280 pixels wide and 800 tall, the editor gives you this:

<div style="position:relative;width:100%;padding-top:calc(62.5% + 78px);border-radius:12px;overflow:hidden">
  <iframe src="your-demo.html" title="Your demo" loading="lazy" allow="fullscreen; autoplay"
    style="position:absolute;inset:0;width:100%;height:100%;border:0"></iframe>
</div>

Its parts

The box
As wide as the space it's in, and as tall as the demo's shape needs at that width, plus 48 pixels for the controls, and 30 pixels more for the step rail when the demo has steps. Its corners are round.
The frame
The file, by its name, filling the box.
loading="lazy"
The file isn't asked for until the demo is near the screen.
allow="fullscreen; autoplay"
So its full-screen button works, and it can start by itself when you've asked it to.
title
What the frame is, for someone using a screen reader.

The switches aren't in it

Play straight through and Start when it scrolls into view are kept in the file, not the snippet. Change them, export again, and the same snippet plays it the new way.

Where it stops. The frame finds the file by its name: rename one and rename the other.