HTML Demo
Meng ToCommunityCreated by Meng To
- Skill
- Content generator
- Automation and integrations
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
html-demo provides a React-based engine to render app demonstrations directly in the browser using HTML and CSS. Instead of relying on video files, it computes every frame as a pure function of time, allowing for interactive features like scrubbing, freezing, and jumping to specific steps. The system uses a fixed 1200 x 750 stage that scales to fit any container, ensuring the demo remains sharp at any resolution. It includes helper utilities for choreographing pointer movement, typing effects, and easing, designed to mimic the behavior of a real application interface.
What it does
- Renders app demonstrations as live HTML and CSS rather than video files.
- Provides a clock-based system to compute frames as a function of time.
- Includes utilities for scripted pointer movement, typing, and easing.
- Supports interactive features such as scrubbing, pausing, and jumping to specific steps.
- Ensures consistent rendering across different screen sizes using CSS scaling.
- Provides a mechanism to handle reduced motion by displaying static end frames.
When to use it
- When you need to replace static screen recordings, GIFs, or MP4s with interactive HTML.
- When creating product tours or feature walkthroughs for landing pages.
- When you need a demo that remains sharp at any pixel density or window size.
- When you require the ability to scrub, freeze, or screenshot specific moments of a UI demo.
Advantages
- Maintains text and image clarity at any scale.
- Allows for programmatic control over the demo playback.
- Enables consistent behavior across different devices and browsers.
- Supports accessibility through proper ARIA labeling and reduced motion handling.
- Reduces file size compared to high-resolution video recordings.
Usage examples
- “Create a product demo for my web application using html-demo.”
- The agent provides the StepWindow engine and guides you through defining steps, choreographing the pointer, and mapping UI states to the time-based clock.
- “How do I make the pointer move to a button and click it?”
- The agent explains the use of the glide helper to calculate pointer coordinates based on time and the held helper to simulate the click press duration.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/mengto/html-demo/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip html-demo.zip -d .agents/skills
Documentation by Meng To
HTML Demo
React · DOM/CSS (a vanilla twin is in scripts/step-window.js). No video, canvas, WebGL or screen recording.
It looks recorded, but it's HTML. Each frame is computed, so it stays sharp at any size and pixel density, its words are real text, and it can loop, jump to a step, scrub, freeze for a screenshot and stand still for reduced motion, all from the same code.
Boundary. Use browser-video-recording when you need a real recording of a real browser as an MP4. Use website-to-motion-design when a page becomes a fixed-length film. Use this skill when the deliverable is a live window on a web page that shows an app working.
Provenance. Extracted from fil.design/download (October 2026). There, Fil for Mac's hero window runs four workflows end to end. Eight chapter windows each show one feature step by step: import a URL → Design → the agent; prompt → inpaint → outpaint → layers → angle; record → motion design → edit → transcript; sites; the browser. One lead built the engine and the hero, and one helper agent built each chapter window from a shared brief.
The mechanism
Every frame of the app is a pure function of one number. A step's View({ t }) draws everything inside the window at a fixed 1200 × 750 design size from t alone, where t is seconds into the step. One CSS scale (--k = width / 1200) then fits that stage to the window.
If you take that away, the demo breaks. When state lives in setTimeout chains, animation callbacks or effects, you can't jump to a step. It drifts after a hidden tab, screenshots differ between runs, and reduced motion catches it half-done. Designing responsively inside the window breaks it differently: text reflows at every width, the pointer misses its targets, and phones show a different app.
import StepWindow, { Cursor, ease, typed, glide } from './scripts/StepWindow.jsx';
const ASK = 'The Ashen One, a knight in blackened armour resting on his sword';
function Prompt({ t }) { // t: 0 → dur, nothing else
const text = typed(ASK, t, 0.9, 2.6); // typed between 0.9 s and 2.6 s
const made = ease(t, 3.4, 5.2); // the picture draws in
const c = glide(t, [[0, 0, 900, 600], [0.2, 0.8, 520, 330], [2.8, 3.3, 760, 470]], [0.85, 3.35]);
return (<>
<App prompt={text} reveal={made} /> {/* the app's real markup at 1200 × 750 */}
<Cursor {...c} /> {/* last, over everything */}
</>);
}
export const STEPS = [
{ id: 'prompt', name: 'Prompt', dur: 6, View: Prompt },
// 3–5 steps, 4–8 s each
];
<StepWindow steps={STEPS} tabs={['The Ashen One']} label="Make a picture" />scripts/StepWindow.jsx provides the window, its clock (useStepClock), the scaling, the steps bar, Cursor, and the helpers ease, typed, cue, held and glide. references/contract.md has the full API, and references/film.md covers the hero variant (many flows, a camera, beats).
Workflow
Pick one example and use it everywhere. Choose one believable subject you own, such as a product, a character or a site (Fil used The Ashen One and Ashgrove), and run every window on it. Never show a client's, partner's or real person's canvas. A window full of real names you can't show is unusable, and different subjects in every window read as scraps.
Gather references of the real UI before drawing anything. Use screenshots, the docs' recordings (pull frames with
ffmpeg -ss 2 -i in.mp4 -frames:v 1 out.png) and the app's source code. List the references for each step. Copy every label, menu item, toast and cost from the source with grep, never from memory. If a viewer who knows the app spots one invented word ("Processing…"), they stop believing the rest.Script the steps on paper. A window gets 3–5 steps of 4–8 s, 18–30 s in all. Each step gets a beat to see the start (0.3–1 s), the action, the result appearing the way the app shows it (a working state, then the result), and at least 1 s holding on the result. Name the steps as the bar shows them, in 1–3 words ("Paste a link", "Inpaint").
Write each step as named times, then derive state from
t. Use constants likeTYPE_FROM = 1.9, SEND_AT = 4.3, DONE_AT = 6.9, then comparisons (t >= SEND_AT),ease(t, a, b)for anything that moves,typed()for typing andcue()for lists of changes. Keep times as constants at the top so the choreography reads like a script and can be retimed in one place.Draw the app at 1200 × 750 from those states. Reuse the real app's markup and CSS where you can. Otherwise copy sizes from its stylesheet: rail width, top bar height, radii, type sizes. Prefix every class and
@keyframeswith the window's own prefix (ximp-,xpic-) and grep to confirm nobody else uses it.Choreograph the pointer like a person. It arrives 0.3–0.6 s before a click, presses for 0.15–0.2 s, and glides 0.5–0.9 s between targets. Between actions it rests out of the way, and it fades when the viewer should look at the result. It must aim at real elements (
data-aimmeasured from the DOM, or coordinates checked in a screenshot).Shoot, compare, fix: at least three rounds. Take frames every 0.5–1 s through each step (
scripts/shoot.mjs) and put them side by side with the references. Ask: would someone who uses this app believe it's a recording? Fix structure (layout, sizes, wording) before polish (motion).Check the edges. Look at the reduced-motion end frames, phone widths (390 px and 340 px), a hidden tab coming back, and the console.
Rules, each with the failure it prevents
Draw from
talone; let CSS transitions only smooth between states. A transition depends on the frame before it. So anything that must be exact when scrubbing, frozen or shot (progress, typed text, reveals, counters, the camera's target) comes fromt. Transitions are fine for hovers, panel slides and the pointer's glide. The trade-off: after a scrub, those transitions settle late, by up to their own duration. Useglide()when the pointer must be exact too.Fixed stage, one scale. Design at 1200 × 750 (16:10, the window's view
aspect-ratio) and scale the whole stage withtransform: scale(var(--k))from aResizeObserver, withtransform-origin: 0 0. A responsive layout inside the window moves the pointer's targets, and the app looks different on every device.Results appear the way the app shows them. Show a working state (spinner, "Making…", shimmer, marching threads), then the result, then a settle. Fil's picture draws in from the top:
clip-path: inset(0 0 100% 0)→inset(0)under a 2 px warm scan line, over a dim copy of itself (blur(10px) brightness(0.5) saturate(0.4), scaled 1.08). Then it settles frombrightness(1.35) saturate(1.1)over 0.9 s, with a glint. A result that just pops in reads as a slideshow.Use real results and real words. Show output the app actually made, saved next to the page. Don't use stand-ins or lorem. If a step needs a result you don't have, make it in the real app, and ask the owner about any cost first. Made-up results are the first thing people notice.
Compress time honestly. A run of minutes plays in seconds, but the numbers stay true. Fil's hero shows 18 s for every demo second ("Made 5 things in 2:14"), and the credit balance runs down as each step finishes.
Play only when it can be seen. Use an
IntersectionObserver(threshold 0.3 for a window, 0.15 for a big hero), skip ticks whiledocument.hidden, clampdtto 0.25 s, and tick every 40–50 ms. Re-render only when the frame's signature changes; the hero comparesJSON.stringify(frame). Videos inside play and pause with visibility. Without this, a page of eight windows burns CPU off screen, and a returning tab fast-forwards through a whole step.Reduced motion means designed end frames. Under
prefers-reduced-motion: reduce, show each step att = dur, turn off every animation and transition on the stage, and keep the steps bar working (a click shows that step's end). So write every end frame as a complete, good picture on its own. A half-made frame or a blank window is the failure.One prefix per window, for classes and keyframes alike. Two windows that each define
.cardor@keyframes incollide, and the stylesheet loaded last restyles the other window. You only see it on the page that loads both.Measure targets from the DOM in a layout effect. Don't hard-code them. Find the pointer's aim (
[data-aim="headline"]) and the camera's frame (the focused nodes'offsetLeft/Top) after layout, and divide by--k. Hard-coded coordinates drift the first time a font loads or a label changes.Key the camera to the scene it was measured on. In a film with several canvases, store the camera transform together with its scene index, and apply it only to that scene. Otherwise the next scene starts from the last one's transform and swoops across the stage.
Crossfade scenes with a lagging view. When the scene changes, keep drawing the last frame of the old scene until its 300 ms fade-out ends, then show the new one. Key the stage by step id so each step gets a 0.45 s fade-in. Without the lag, the new scene flashes through the old scene's fade.
Load the real fonts inside the demo. A page drawn inside the window (a landing page, a site) loads its own web fonts once, with a
<link id="…">added if missing. Fallback metrics change line breaks, so the pointer's aims miss.Preload the next scene's pictures (
new Image().src = …) while the current one plays. Otherwise the next scene starts with empty boxes on a cold cache.Mark it as a picture for assistive tech. Give the stage
role="img"and anaria-labelthat lists the steps, and keeppointer-events: noneanduser-select: noneon the stage. The steps bar uses real buttons witharia-current="step"and a visible focus ring. A screen reader should hear "Import a page: Paste a link, Open in Design, Edit with the agent", not 400 nodes of fake UI.<figure>needsmargin: 0. The browser's default 40 px side margins take 80 px off a 390 px phone.
Numbers that shipped
| what | value |
|---|---|
| stage | 1200 × 750, --k = clientWidth / 1200 |
| steps | 3–5 per window, 4–8 s each, 18–30 s per window |
| hold on the result | ≥ 1 s |
| typing | ~50 characters/s (90 characters in 1.8 s); a person reads it, nobody waits for it |
| pointer glide | 0.5–0.9 s, cubic-bezier(0.55, 0, 0.25, 1); arrive 0.3–0.6 s early |
| click | 0.15–0.2 s pressed; arrow scale 1.15 → 0.98 |
| step fade-in | 0.45 s, cubic-bezier(0.2, 0.7, 0.1, 1) |
| scene crossfade | 300 ms lag before the next scene draws |
| clock | tick 40 ms (windows) or 50 ms (film); dt ≤ 0.25 s; on-screen threshold 0.3 (0.15 hero) |
| threads | 1.6 px at 0.8 opacity in the source node's colour; live: dashes 6 7 marching 0.7 s; quiet (brief, skill): 0.14 |
| camera | up to 1.2× on the step being made plus what feeds it; whole canvas 0.86–1.08×; glide 1.3 s cubic-bezier(0.45, 0, 0.2, 1) |
| time shown | 18 s of app time for every demo second |
Many windows at once
Build the engine and one window yourself first. That window is the style guide. Then give each helper one window and a shared brief (references/brief.md). Each helper creates only its two files with its own prefix, previews through one shared dev server (scripts/preview-plugin.mjs, at /preview?entry=), works in its own scratch folder and runs no git. Each one shoots, critiques and fixes for at least three rounds, then reports its steps, screenshot paths and "what still falls short".
Read those reports: the gaps they list are the next round. Helpers stop at usage limits. Resume them with a message rather than starting new ones, because their work so far is kept.
Verify
[ ] A frozen frame (
useStepClock(steps, { start: { i, t } })) at the sametlooks the same on every run.[ ] Every step was shot every 0.5–1 s and compared side by side with the real app's references.
[ ] Every label, menu item and number in the UI was found in the app's source or a reference.
[ ] Reduced motion shows complete end frames, and the steps bar still works.
[ ] It pauses off screen and in a hidden tab, and doesn't fast-forward when it comes back.
[ ] At 390 px and 340 px there's no sideways scroll, and the window keeps its 16:10.
[ ] Classes and keyframes use the window's prefix only (checked with grep).
[ ] The console is clean.
Files
scripts/StepWindow.jsx,scripts/step-window.css: the engine (React): window, clock, scale, steps bar, pointer, helpers.scripts/step-window.js: the same engine without React (HTMLDemo.mount), using the same CSS.scripts/example-steps.jsx: three steps written against the contract (prompt → generate → full view).scripts/preview-plugin.mjs: a Vite plugin that serves/preview?entry=<file>so each window can be previewed alone.scripts/shoot.mjs: Playwright screenshots at chosen seconds, or frozen frames, at 2×.references/contract.md: the step contract, clock API and helpers.references/film.md: the hero variant (flows scheduled from a graph, beats with cues, a measured camera).references/brief.md: the shared brief template for helper agents.demo/index.html: a self-contained demo (vanilla) of Fil for Mac making a picture, with a scrubber.
Files
- ATTRIBUTION.mdAdded by AutoGineer840 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md14.1 KiB
- agents/openai.yaml381 B
- demo/PROMPT.md3.5 KiB
- demo/avatar.webp2.9 KiB
- demo/cathedral.webp50.7 KiB
- demo/index.html44.9 KiB
- demo/knight.webp31.7 KiB
- demo/preview.jpg76.4 KiB
- references/brief.md5.3 KiB
- references/contract.md5.1 KiB
- references/film.md4.9 KiB
- scripts/StepWindow.jsxScript9.7 KiB
- scripts/example-steps.jsxScript3.9 KiB
- scripts/preview-plugin.mjsScript2.0 KiB
- scripts/shoot.mjsScript2.3 KiB
- scripts/step-window.css5.3 KiB
- scripts/step-window.jsScript8.2 KiB
LICENSE
MIT License Copyright (c) 2026 Meng To Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Meng To
- Publisher
- Meng To (Community)
- Source
- MengTo/Skills · agent-skills/web-design/html-demo · commit 5ea1661
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Meng To.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download html-demo.zip