Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
docs(prompting): add "Avoiding the slideshow" — continuity contract + dwell-and-sweep
Vance Ingalls4f6fb8fc16c5
diff --git a/docs/prompting/motion.mdx b/docs/prompting/motion.mdxindex a6229e8999..3f52b05779 100644--- a/docs/prompting/motion.mdx+++ b/docs/prompting/motion.mdx@@ -13,17 +13,6 @@ By now you can specify a frame precisely — exact copy, exact colors, exact lay6. **Match pacing to genre.** Showreel-style cuts run 1.5-4 seconds per idea; a stretched 8-second version of a 2-second idea feels slow no matter how it's animated.7. **Handmade imperfection stays reproducible.** A stop-motion or hand-animated feel wants irregular timing, not machine-smooth eases — but true unseeded randomness breaks the render: HyperFrames must produce the identical frame every time it seeks to the same point, and `Math.random()` can't promise that. Seed a PRNG once at composition start instead, and step discrete elements between held positions (a "two-frame hold": land, hold two frames, jump to the next offset) rather than tweening continuously between them. The irregularity is real — it just comes from a seed, not from chance.-<Note>-**Capstone thread** — rule 2 taken to its logical end is the spine of the [Level 7 film](/prompting/capstone): one continuous camera journey with full dwells at the hero moments. This is that camera mid-flight — accelerating out of one region, arriving and stopping in the next (0:11–0:21 of the film, cut in isolation). Rule 7 shows up there too: the film's closing confetti is seeded with a two-frame hold.-</Note>--This is the clause in the [full capstone prompt](/prompting/capstone#the-full-prompt-verbatim) that buys the piece — prompt language you can lift for your own video:--> ONE continuous camera journey with a dwell-and-sweep rhythm. The whole film is a single wide world (one large scene space) that the camera dollies across […] in one unbroken move with NO hard cuts anywhere except inside the two sanctioned seam moments named below. The rhythm: the camera SWEEPS between regions, then eases to a genuine REST at each region's hero moment — a full stop of roughly 1.5–2.5 seconds while the main point lands […] then accelerates away. The dwell is what gives the sweep meaning: without the rest, emphasis dies mid-motion. During a dwell the WORLD keeps resolving (counters tick, labels stamp, secondary motion continues) — the camera rests, the film never freezes.--<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-region-camera.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>-*The capstone's camera: never cutting, easing through arrivals, stopping only to let a beat land.*-## The grammar, measuredThe same composition built twice — identical content, identical layout; the only variable is the motion treatment. The first build commits the anti-patterns above: simultaneous identical entrances, no camera, a frozen final 2.4 seconds. The second applies the seven rules.@@ -36,6 +25,29 @@ The same composition built twice — identical content, identical layout; the onThe difference is measurable, not just visible: in the final second the frozen build has bit-identical consecutive frames, while the motion-grammar build changes every single frame — corroborated by the encoder (211KB vs 2.5MB for the same content). A frozen final second is the cheap-motion tell you can test for.+## Avoiding the slideshow++The seven rules govern motion *inside* a scene. Apply all seven, cut between scenes, and you can still end up with a slideshow: a sequence of well-animated cards that happen to play in order. This is the single most common note on multi-scene work, and it took two failed review passes on the [Level 7 film](/prompting/capstone) to learn what actually fixes it — neither fix is more animation.++**Continuity is a contract, not a side effect.** The first rebuild said "no hard cuts" and still played as a slideshow: each region faded up centered, sat, and faded out while the camera politely waited. "No cuts" only removes the seam; it doesn't create a relationship between scenes. What creates one is naming, in the prompt, the things that survive the boundary:++- **Persistent elements that cross every scene.** Name two or three concretely and say they are never absent. In the capstone it's a wire (one continuous line that becomes the chart baseline, the map arc, the waveform, the 3D coil), a frame-ruler whose playhead tracks real playback time, and a protagonist chip that rides the whole journey. Each one is a thread the eye follows across a boundary it would otherwise read as a cut.+- **Arrivals instead of cuts.** Say the next scene is already visible at the edge of frame before the camera reaches it, and the previous one exits by parallax rather than fading. A scene you *travel to* cannot read as a slide.+- **Negatives that name the tell.** "No element cluster that fades in centered, sits, and fades out; no region that reads as a static slide while the camera happens to pass." Agents reproduce the slideshow because it is the safe default — you have to forbid it by name.++**Rest is what creates emphasis.** The second rebuild fixed continuity and introduced the opposite problem: the camera now never stopped, so every hero moment — the count completing, the kicker stamping — landed mid-sweep and got thrown away. Constant motion is not the goal; *modulated* motion is. Ask for a **dwell-and-sweep rhythm**: the camera travels between regions, then eases to a genuine full stop while the point lands, then accelerates away.++The subtlety that keeps this from contradicting rule 1: during a dwell the **camera** rests, the **film** does not. Counters keep ticking, labels keep stamping, secondary motion keeps resolving. Say that explicitly or you'll trade a slideshow for a freeze-frame.++Here is the clause that buys both fixes, quoted from the [full capstone prompt](/prompting/capstone#the-full-prompt-verbatim) — lift it for your own multi-scene work:++> ONE continuous camera journey with a dwell-and-sweep rhythm. The whole film is a single wide world (one large scene space) that the camera dollies across […] in one unbroken move with NO hard cuts anywhere except inside the two sanctioned seam moments named below. The rhythm: the camera SWEEPS between regions, then eases to a genuine REST at each region's hero moment — a full stop of roughly 1.5–2.5 seconds while the main point lands […] then accelerates away. The dwell is what gives the sweep meaning: without the rest, emphasis dies mid-motion. During a dwell the WORLD keeps resolving (counters tick, labels stamp, secondary motion continues) — the camera rests, the film never freezes.++<video controls muted loop playsinline preload="metadata" src="https://static.heygen.ai/hyperframes-oss/docs/images/prompting/capstone-region-camera.mp4" style={{ borderRadius: "0.5rem", marginTop: "0.75rem" }}></video>+*That clause, rendered: the camera accelerating out of one region, arriving in the next, and stopping to let the beat land — no cut anywhere in the span.*++One honest caveat: a continuous world costs more than a cut. It only pays when the piece has a through-line worth following. For a 6-second stat card, cut.+## Handmade, still deterministicRule 1's ambient idle is *continuous* — a slow, smooth breathing scale. Rule 7 is a different tool for a different job: when the brief wants something that reads as physically hand-animated (paper cutouts, stop-motion, a wobbly hand-drawn line), continuous easing is the wrong texture — it reads as digital no matter how organic the curve. What you want is irregular, but reproducible: