Skip to content
Showpiece

Interactive demos on Webflow

Add an interactive demo to your Webflow site.

Export the demo as one HTML file, put it online, and paste the snippet into a Code Embed element. It plays in your page, from wherever the file is.

Three steps

From the editor to Webflow.

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

    Paste it into Webflow

    Open the Add panel and add a Code Embed element where the demo goes. Paste the snippet, save and close, then publish.

The snippet

The snippet, ready to paste.

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

Code Embed · the snippet for the pageHTML
<div style="position:relative;width:100%;padding-top:calc(62.5% + 48px);border-radius:12px;overflow:hidden">
  <iframe src="https://harbor.example/demos/harbor.html" title="Harbor's homepage demo" data-demo="demo-harbor" 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-harbor"]');
  // 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: "Harbor's homepage demo" };
    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.

Harbor's homepage demo, playing from its file: it starts by itself once it's seen and plays straight through.

harbor.htmlPlays from its file
Harbor, a CRM: its homepage demo playing from the file, straight through

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

One that plays straight through starts by itself once it's seen, and pauses when it's scrolled away.

What the snippet does

From its own help

What Webflow's help says.

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

Where it goes
A Code Embed element.
The snippet for the page
Yes, on a paid plan: a Core, Growth, Agency or Freelancer Workspace, or a site with an active Site plan.
The pop-up
Yes, on the same plans. A script shows as a placeholder in the Designer and runs on the published site.

Checked October 2026, from Webflow’s own help: Custom code embed (Webflow Help Center)Code Embed element (Webflow University)

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

Questions

Webflow and your demo.

Short answers about putting a demo on Webflow.

Do I need a paid Webflow plan?

For a Code Embed, yes. Webflow's help names a Core, Growth, Agency or Freelancer Workspace, or a site with an active Site plan.

Can I paste the whole file into the Code Embed?

No. A Code Embed holds 50,000 characters, and the file is far bigger than that. The snippet is short because it points to the file.

Will it slow my page down?

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

Can I check it before I publish?

Publish to your site's webflow.io address first: Webflow's help suggests it for testing. In the Designer, the pop-up's script shows as a placeholder.

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.