# Scripted Product Demo: replication prompt

Paste this into Claude Code, Cursor, Replit, Lovable or v0.

```text
Create a polished product demo video under 20 seconds as a single self-contained index.html, with no screen recording. Build a 1600x900 stage scaled to fit the window, containing a browser-window mock of the product, a large dark cursor in world space so camera zooms scale it, and captions outside the camera. Write a tiny engine: tween(ms, fn) with easeInOutCubic, move(selector) that glides the cursor in a slight arc, click() with a press scale and an expanding accent ripple, type(selector, text) with a blinking caret, camera(x, y, zoom) and focus(selector, zoom) that tween a translate+scale transform on the world, and caption(text) that swaps a numbered pill. Then direct the demo as one async script: paste a draft (show a key badge), click Generate (loading spinner), cards stagger in with animated score bars, hover two options, pick the best, type it into the title field, open an email preview drawer, then show an end card. Use large, easy-to-follow cursor moves, smooth pacing and minimal, elegant motion. Support ?record=1 to hide the controls and set window.DEMO_DURATION.
```

## Key code

```js
async function run(){
  await caption('Paste a draft.');
  await move('body', 1000); await click(); await focus('body', 1.35, 900);
  await caption('Generate ranked headlines.');
  await Promise.all([move('gen', 900), focus('gen', 1.5, 900)]);
  await click('gen');
  await caption('Pick the winner.');
  await move('h0', 700); await click();
  await caption('It drops straight into your draft.');
  await type('title', 'Why the best AI products slow down on purpose', 40);
}
```
