Hyperframes product launch video

From oyi77/1ai-skills · View interactive version

Hyperframes product launch video is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when creating product launch videos from a URL, brief, or script. Create product launch videos from a URL, brief, or script using HyperFrames (HTML→MP4). Use when the user wants a product launch video, site tour, social clip featuring a product''s own visuals, or marketing/promoting a product. U

How to use this skill

Skill file

Overview

This skill assembles a product launch video — hero shot, feature callouts, timing — as a HyperFrames composition. Use it when a new release needs a tight, brandable announcement clip. It renders the final MP4 from the product assets you supply.

HyperFrames — Product Launch Video

Create product launch videos by writing HTML compositions that HyperFrames renders to deterministic MP4. The agent-native video pipeline: LLMs write HTML (their first language), HyperFrames renders frame-exact video via headless Chrome + FFmpeg.

When to Use

When NOT to Use

Workflow

0 · Bootstrap the project

npx hyperframes init my-launch-video
cd my-launch-video

This creates the project scaffold with index.html, package.json, and the HyperFrames CLI configured.

1 · Plan the video

2 · Write the composition HTML

The composition contract:

<!doctype html>
<html lang="en">
  <body>
    <div
      id="main"
      data-composition-id="intro"
      data-start="0"
      data-duration="15"
      data-width="1080"
      data-height="1920"
      data-fps="30"
    >
      <div
        class="clip"
        data-start="0"
        data-duration="5"
        data-track-index="0"
      >
        <!-- Scene content -->
      </div>
    </div>
  </body>
</html>

Key attributes:

3 · Wire seekable animations

Use GSAP (recommended), CSS keyframes, or WAAPI. All animations must be seekable (deterministic — same frame at same time, every render).

GSAP pattern (recommended):

const tl = gsap.timeline({ paused: true });
tl.to("#title", { opacity: 1, y: 0, duration: 0.8, ease: "power4.out" }, 0.5);
tl.to("#image", { scale: 1, opacity: 1, duration: 1.2, ease: "power3.out" }, 1.0);
window.__timelines = { main: tl };

CSS keyframes pattern:

@keyframes fadeInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.animate-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

4 · Add media

5 · Lint and check

npx hyperframes check        # validate composition contract
npx hyperframes lint         # check for common errors

Fix all errors before proceeding. Warnings are acceptable but should be reviewed.

6 · Preview

npx hyperframes preview      # opens Hyperframes Studio with HMR

Spot-check 3-4 beats via __player.seek(time) on the raw comp page. Verify:

7 · Render

npx hyperframes render --output launch-video.mp4

Verify the output:

ffmpeg -ss 3 -i launch-video.mp4 -frames:v 1 frame-3s.png  # check captions
ffmpeg -ss 15 -i launch-video.mp4 -frames:v 1 frame-15s.png # check scene

Anti-Rationalization Table

| Rationalization | Reality |

|----------------|---------|

| "I'll just use a video editor" | GUI editors aren't agent-native; HTML is what LLMs write best |

| "I'll skip the lint step" | Lint catches composition contract errors that break renders |

| "I'll use Remotion instead" | Remotion requires React reasoning; HTML is simpler for agents |

| "I'll add idle animations to fill time" | Idle wobble is banned — every phase must perform (see hyperframes-cut-the-curve) |

| "I'll center content at 42% to leave room for captions" | Captions are an overlay — center on true center (y = H/2) |

| "I'll use a crossfade between scenes" | Crossfades have no carrier — use cut-the-curve for default boundaries |

| "I'll write one big HTML file without scenes" | Scenes are the unit of composition — each gets its own clip wrapper |

| "I'll skip the preview and just render" | Preview catches timing errors that waste render time |

Code Example

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <style>
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0a0a; }
      #main {
        position: relative;
        width: 1080px;
        height: 1920px;
        overflow: hidden;
      }
      .scene {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.5s ease;
      }
      .scene.active { opacity: 1; }
      .hook-bg {
        background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 80px;
        text-align: center;
        color: white;
        font-family: system-ui, sans-serif;
      }
      .hook-text {
        font-size: 72px;
        font-weight: 800;
        line-height: 1.1;
        transform: translateY(40px);
        opacity: 0;
      }
      .animate-in {
        animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }
      @keyframes fadeInUp {
        from { transform: translateY(40px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
      }
    </style>
  </head>
  <body>
    <div
      id="main"
      data-composition-id="product-ad"
      data-start="0"
      data-duration="15"
      data-width="1080"
      data-height="1920"
      data-fps="30"
    >
      <div class="scene hook-bg" data-start="0" data-duration="5" data-track-index="0">
        <h1 class="hook-text animate-in" data-start="0.5" data-duration="4">
          Product Name
        </h1>
      </div>
    </div>
    <script>
      // Scene activation via IntersectionObserver or manual timing
      const scenes = document.querySelectorAll('.scene');
      scenes.forEach(scene => {
        const start = parseFloat(scene.dataset.start);
        const duration = parseFloat(scene.dataset.duration);
        setTimeout(() => scene.classList.add('active'), start * 1000);
        setTimeout(() => scene.classList.remove('active'), (start + duration) * 1000);
      });
    </script>
  </body>
</html>

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.