Make Your First 15-Second HyperFrames Video

Prompt a coding agent, edit a working HTML and GSAP composition, check its scene cuts, and render a 15-second product launch clip to a 1080p MP4.

Updated Dec 4, 2026 · Tested with HyperFrames 0.10.10

Build a 15-second product launch card for Relay, a fictional project handoff tool. The clip starts with a problem, shows a feature, and ends with a call to action. You will end up with an editable HTML composition and a 1920 × 1080 MP4. You can use a coding agent for the first version or paste in the working example below. All the visuals are type and CSS. No paid media or voice generation is required.

1. Create a landscape project

Set up the local CLI and render dependencies. If you want to work with an agent, install its HyperFrames skills before opening the new project. See the guides for Claude Code and Codex.

bash
npx hyperframes init relay-launch --resolution landscape --non-interactive --skip-skills
cd relay-launch

Use a fresh directory name if you already have a project called relay-launch. Open this folder in your agent so it can modify the existing scaffold. Keep the project's config files and edit index.html.

2. Give the agent a timed brief

The timestamps give the agent a measurable edit target. Include the copy you want on screen and require a render that you can play. Here is the full prompt.

Use the HyperFrames skill. In this project, build a silent 15-second product launch video for Relay, a fictional project handoff tool. Use a 1920 × 1080 canvas with a dark navy background, warm white type, and a mint accent. From 0 to 4 seconds show “Too many handoffs?” with “Give the next owner a clear starting point.” From 4 to 10 seconds show “One owner. One next step.” with “Send both in a single update.” From 10 to 15 seconds show “Start your first handoff.” with “Create a project to get started.” Use editable HTML text and a short, seekable GSAP slide-up on each headline. Keep the rest of the scene steady for reading. Use CSS and text with no paid services or remote media. Run lint and a browser check across both cuts. Render 30 fps locally to relay-launch.mp4 and report the result and any warnings.

An agent may adjust font sizes and layout. Hold it to the duration and cut points from the brief. If the render command is gated by the agent's terminal permissions, use the same command yourself in the project directory.

3. Read or copy the composition

This is a minimal complete index.html tested with HyperFrames CLI 0.10.10. The GSAP script uses the same CDN release as the starter. The first preview or render therefore needs access to that file. To work fully offline, place a local copy of that GSAP build in the project and update the script path before rendering.

html
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=1920, height=1080">
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
  <style>
    * { box-sizing: border-box; }
    body { margin: 0; width: 1920px; height: 1080px; overflow: hidden; }
    #launch {
      position: relative; width: 100%; height: 100%;
      background: #111827; color: #f8fafc; font-family: system-ui, sans-serif;
    }
    .scene {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      justify-content: center; gap: 32px; padding: 140px;
    }
    .tag { color: #6ee7b7; font-size: 42px; font-weight: 700; }
    .headline { margin: 0; font-size: 116px; line-height: 1.05; }
    .detail { margin: 0; font-size: 48px; color: #cbd5e1; }
  </style>
</head>
<body>
  <main id="launch" data-composition-id="main" data-start="0"
        data-duration="15" data-width="1920" data-height="1080">
    <section id="hook" class="clip scene" data-start="0" data-duration="4"
             data-track-index="0">
      <span class="tag">RELAY / PROJECT HANDOFFS</span>
      <h1 class="headline">Too many handoffs?</h1>
      <p class="detail">Give the next owner a clear starting point.</p>
    </section>
    <section id="feature" class="clip scene" data-start="4" data-duration="6"
             data-track-index="0">
      <span class="tag">01 / ASSIGN</span>
      <h2 class="headline">One owner. One next step.</h2>
      <p class="detail">Send both in a single update.</p>
    </section>
    <section id="cta" class="clip scene" data-start="10" data-duration="5"
             data-track-index="0">
      <span class="tag">MEET RELAY</span>
      <h2 class="headline">Start your first handoff.</h2>
      <p class="detail">Create a project to get started.</p>
    </section>
  </main>
  <script>
    const timeline = gsap.timeline({ paused: true });
    timeline.from("#hook .headline", { y: 56, opacity: 0, duration: 0.55, ease: "power3.out" }, 0);
    timeline.from("#feature .headline", { y: 56, opacity: 0, duration: 0.55, ease: "power3.out" }, 4);
    timeline.from("#cta .headline", { y: 56, opacity: 0, duration: 0.55, ease: "power3.out" }, 10);
    window.__timelines["main"] = timeline;
    timeline.seek(0);
  </script>
</body>
</html>

The root element defines the 15-second film and its dimensions. Each clip starts at an offset on the film clock and occupies track zero. The clips meet at 4 and 10 seconds, so a single scene is active at a time. The composition ID main matches the key on window.__timelines. That registered timeline lets the renderer seek to a particular frame and evaluate the headline's motion at that time. The last scene's declared duration determines how long it remains on screen after the tween finishes.

The scene wrappers keep each label, title, and detail together for this small example. If you need to edit those elements as groups from the visual timeline, move each scene into its own sub-composition and mount it from the main file. The compact example keeps the whole edit available in one file.

4. Preview the edit and check the cuts

bash
npx hyperframes preview

Use the printed Studio URL. Scrub to just before and after 4 seconds and 10 seconds. The correct scene should take over at each cut. At 14.5 seconds, the call to action should still be readable. Ask the agent for one specific change, such as “Make the feature headline smaller so it stays on one line, and preserve the 4- and 10-second cuts.” Preview the same spots again. If you change a cut time, update the surrounding clips' starts and durations and their corresponding tween offsets.

Stop preview with Ctrl+C and run the static and browser checks.

bash
npx hyperframes lint
npx hyperframes check --no-browser-gpu --at 0.5,3.9,4.1,9.9,10.1,14.5

The verified example printed Check passed, reported zero runtime and layout issues, and passed 15 out of 15 contrast checks. It warned about nested scene structure and still periods during the intended reading holds. The audio report also noted that the film has no audio. Read those findings in context. For example, if your own composition has a still period after the final line has disappeared, fix the timing and check that interval before exporting. If the screen appears blank throughout, look for script load errors and check that the timeline key matches the composition ID.

5. Export and verify the MP4

bash
npx hyperframes render --fps 30 --quality looks --workers 1 --no-browser-gpu -o relay-launch.mp4
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,width,height,r_frame_rate:format=duration -of json relay-launch.mp4

The reference Linux render produced relay-launch.mp4, a 345.5 KB H.264 file, in 6.9 seconds of render time. FFprobe measured 1920 × 1080, 30 fps, and exactly 15 seconds. Times and sizes vary with the environment and the content. Open the MP4 and watch it from start to finish. Check the reading time, the two hard cuts, and the final frame. Keep index.html alongside the media you used so another revision can be rendered from the same composition. If a heavier project stalls, start with the render timeout guide.

Frequently asked questions

Can I follow this tutorial without an agent?
Yes. Paste the complete composition into the starter's index.html, then preview, check, and render it with the CLI.
What resolution and frame rate does this tutorial use?
The canvas is 1920 by 1080 pixels, with a 15-second duration. The render command exports a 30 fps MP4.

Related guides