Skip to content
Showpiece

Interactive demos on Framer

Add an interactive demo to your Framer site.

Export the demo as one HTML file and put it online. Then give a Framer Embed its address, or paste the snippet into the Embed's HTML.

Three steps

From the editor to Framer.

Nothing to install on your site, and nothing of ours to load.

  1. 01

    Export the demo

    Open the arrow beside Export. Under On a web page, copy the snippet, then export the file.

  2. 02

    Put it online

    Anywhere that serves a web page over https. In the snippet, change the file's name to its full address.

  3. 03

    Add an Embed

    In the Insert menu, search for Embed and drag it onto the canvas. Give it the file's address, or paste the snippet in its HTML section.

The snippet

The snippet, ready to paste.

The editor's own snippet, with the file's full address in it.

Embed · the snippet for the pageHTML
<div style="position:relative;width:100%;padding-top:calc(62.5% + 78px);border-radius:12px;overflow:hidden">
  <iframe src="https://kestrel.example/demos/kestrel.html" title="Kestrel's weekly report" data-demo="demo-kestrel" loading="lazy" allow="fullscreen; autoplay"
    style="position:absolute;inset:0;width:100%;height:100%;border:0"></iframe>
</div>
<script>
(function () {
  var frame = document.querySelector('iframe[data-demo="demo-kestrel"]');
  // What happens in the demo, sent to this page's analytics: Google Analytics, Tag Manager, Segment,
  // PostHog or Mixpanel, whichever it runs. Only the demo's own words, nothing about who's watching.
  var events = {"ready":"demo_view","step":"demo_step","button":"demo_button","choice":"demo_choice","end":"demo_complete"};
  function measure(data) {
    var name = events[data.type];
    if (!name) return;
    var props = { demo: "Kestrel's weekly report" };
    for (var key in data) if (key !== "protocol" && key !== "type") props[key] = data[key];
    if (typeof window.gtag === "function") window.gtag("event", name, props);
    else if (window.dataLayer && typeof window.dataLayer.push === "function") window.dataLayer.push(Object.assign({ event: name }, props));
    if (window.analytics && typeof window.analytics.track === "function") window.analytics.track(name, props);
    if (window.posthog && typeof window.posthog.capture === "function") window.posthog.capture(name, props);
    if (window.mixpanel && typeof window.mixpanel.track === "function") window.mixpanel.track(name, props);
  }
  window.addEventListener("message", function (e) {
    if (!frame || e.source !== frame.contentWindow || !e.data || e.data.protocol !== "demo/1") return;
    measure(e.data);
  });
})();
</script>

The one change from the editor’s snippet is the address: the file’s name becomes where it is online, starting https.

The box keeps the demo’s shape at any width, with room for its controls. The file isn’t asked for until the demo’s scrolled near.

The lines under it pass views, steps and clicks to your page’s analytics, on Basic and Pro. Switch them off in Export and the snippet is the box alone.

The snippet, part by part

How it looks

The demo, playing from its file.

Kestrel's weekly report, walked through: it waits at each step for the viewer to click on.

kestrel.htmlPlays from its file
Kestrel, an analytics app: a walkthrough picks a month and builds a report

This is the file itself, playing on our site. In your page it plays from wherever you put it, with its controls under it.

A walkthrough waits at each step until the viewer clicks on.

What the snippet does

From its own help

What Framer's help says.

Read on framer.com in October 2026. Each line rests on the pages linked under it.

Where it goes
An Embed component: Insert, search for Embed, and give it the snippet as HTML.
The snippet for the page
Yes. An Embed takes the file's address too.
The pop-up
Framer's help puts a <script> in an Embed's HTML, and says some need wrapping in more code. Try it; if the button does nothing, use the snippet for the page.

Checked October 2026, from Framer’s own help: How to add an iframe or embed script

Squarespace, Wix, Ghost and the rest: every platform, from its own help.

Questions

Framer and your demo.

Short answers about putting a demo on Framer.

The address, or the snippet?

Either. The address is quickest: the Embed shows the file that's there. The snippet keeps a box at the demo's shape, with room for its controls, and carries the lines for your analytics.

Does the pop-up work in Framer?

Framer's help puts a <script> in an Embed's HTML, which the pop-up needs, and says some scripts need wrapping in more code. Try it: if the button does nothing, use the snippet for the page.

The Embed stays blank.

Framer's help says some websites block embedding through their headers. The server holding your file has to let it be shown in a frame.

Will it slow my page down?

With the snippet, the file is asked for only when the demo's scrolled near, so it doesn't hold up your page as it opens.

How do I change the demo later?

Export it again and put the new file where the old one was, at the same address. Nothing on your page changes.

Good to know

Where it stops.

Over https
A page served over https won't show a frame from an http address, so give the snippet one that starts with https.
A server that won't be framed
Some servers keep what they serve out of other sites' frames. If the demo's box stays blank, the server holding the file has to allow it.
One address
The snippet finds the file at its address. Move or rename the file, and change the address in the snippet too.
The plans
Every plan exports the file and its snippet: Free one demo, with our mark. The pop-up and the lines for your analytics are Basic's and Pro's.

Record your first demo.

It's free to start. Add the extension and press record.