--- name: hyperframes description: Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs. --- **Environment:** the CLI is the global `hyperframes` command, run in the project folder. There is no network: do not fetch anything, and nothing here needs an account or a sign-in. Render with `/opt/motion/bin/render-project ` (see "Render" below). Playbook files are under `/opt/motion/references/`; the one ready-made chart block is `/opt/motion/blocks/data-chart/`. # HyperFrames HyperFrames renders HTML to video by seeking a paused timeline frame by frame, so every render is identical; the person asks for changes and you edit the same files. Use it unless another framework or a plain browser recording is asked for. `index.html` is the root composition: it declares the video's variables and mounts one scene per sub-composition from `compositions/`. Media and fonts live in `assets/`. A new project: `hyperframes init --skip-skills`. Build what was asked: no voiceover or captions and no new aspect ratio unless the request calls for them. A new video is 1920×1080 at 30 fps. A question, a hold or a loose idea gets an answer or a proposal, not an edit. Before hand-writing a chart, check `/opt/motion/blocks/` for a ready-made one. No footage, voice or music is available here: build from text, shapes, the person's own files and the bundled fonts. Show real things from their source (the brand's logo, the person's own images); draw only what has none. ## Contract `hyperframes check --json` reports most violations with a `Fix:` line. 1. Every timed element has `class="clip"`, `data-start` and `data-duration` in seconds, and shows over `[start, start + duration)`: land an end state just before its end. `data-track-index` is only a Studio lane (clips that never overlap share one: `references/format.md`); paint order is `z-index`. 2. The video's length is the root's `data-duration`: overrun is cut, an early end holds the last frame. 3. Each composition builds one paused timeline and registers it after its tweens: `window.__timelines[""] = tl`. 4. No `Date.now()`, unseeded `Math.random()`, network fetches, timers or `repeat: -1`. Everything visible is a function of timeline time. 5. Never tween `display`, `visibility` or `autoAlpha` on a `.clip`; animate a child. 6. No CSS `transform` on an element GSAP transforms; animate transforms, not `left`/`top`/`width`/`height`. 7. Never `play()`, `pause()` or seek media. A `