* feat(studio,cli): per-frame board comments, self-refreshing storyboard, status-aware preview landing Per-frame comment boxes on the storyboard board batch into .hyperframes/frame-comments.json (a resubmit wins per frame; unconsumed comments on other frames are kept). Submitted-but-unconsumed comments stay visible — a toolbar banner plus a per-tile echo — until the agent consumes the file; the banner also says what to do next (reply anything in the agent chat). The board keeps itself current: GET /projects/:id/signature exposes the watcher-cached project signature, the storyboard payload carries the signature it was derived from, and the view polls at 2s (hidden tabs skipped, re-checked on visibility), refetching in place with no loading flash. Posters bake the signature into their URL so tiles fill in as sketches land and a poster that failed mid-write retries on the next version; the empty state upgrades itself when STORYBOARD.md appears, and its handoff prompt now points the agent at the review loop and uses the parser's real status vocabulary (outline, not planned). preview lands the browser on the storyboard view while the board is the review surface — any frame built, or pure planning (srcs declared, none on disk yet) — and on the timeline once the video is assembled. * feat(skills): the review loop — plan, sketch, build as one shared process hyperframes-core/references/review-loop.md is the single source for the three-pass collaborative review: the plan proposed on a live board (§ 1), wireframe sketches marked built with one layout question (§ 2 — real words on plain blocks, run no CLI; a confirmed board is itself a valid deliverable when the user asked for a storyboard, not a video), the build dressing confirmed layouts (§ 3, worker or inline), and the final look (§ 4). Autonomous runs skip every gate and keep one question before render. The three narrative workflows' Steps 3/4/6 collapse to references plus their sketch stand-ins (captured-asset blocks for product-launch-video, plain code panels for pr-to-video); the confirmed-sketch handoff stays in each frame-worker prompt. general-video plans on a board for multi-scene narrative pieces in collaborative mode — its sketch pass is layout-before-animation with the user watching. The router treats "I want a storyboard" as a process request rather than a route, and closes exploratory intake by recommending a route plus how the run will review. The supporting contracts land next door: the comments channel (silent submit, one reply picks it up, check the file before the words) in brief-contract § 1; the sidecar schema and the built status rung in storyboard-format; the mode question asked first and alone in the three workflows' Step 0. * feat(media-use): user memory — remembered preferences and frozen recipes Two tiers of memory on media-use's existing two-tier storage split. Preferences (lightweight): confirmed brief answers — destination, aspect, language, mode, voice, style preset — recorded to the project's .media/preferences.json (committed, the team inherits it) and promoted to the personal ~/.media/preferences.json once the same value is confirmed in two different projects (a sightings ledger accumulates the cross-project evidence user-side, since project files can't see each other). prefs.mjs get/record; merge reads project-over-user; a changed value restarts its provenance. Recipes (heavyweight): one approved run frozen as a named, versioned bundle — frame.md, the storyboard skeleton (structure kept: durations, transitions, srcs, Video direction; statuses reset to outline; content blanked to per-frame fill-ins naming the beat's role), and the confirmed brief values. Named folders, not content hashes: re-freezing bumps version and archives <name>@v<N>; a freeze is already confirmed, so it promotes to the user tier immediately. recipe.mjs freeze/list/use, plus resolve --type recipe --entity <name> delegating like grade/lut. 16 new node --test cases; the media-use lib suite is 168/168. * feat(skills): wire user memory into the brief and the review loop brief-contract § 2 gains Remembered defaults: read the merged preferences before Round 2 and let a remembered value become the recommended option with a receipt naming its source project. Memory changes the default, never the question — every ask-marked field still gets asked, and what the request says this time beats what was picked last time. Record only what the user actually confirmed (a defaulted voice nobody chose is not an answer; a "go" that accepts the recommended defaults is). The first record announces itself once; after that the receipts carry the reminder. In autonomous mode a remembered value becomes the decided value, receipt included. The three narrative workflows read the remembered defaults before Round 2, record the confirmed answers at the Step 0 gate, record the chosen preset at the Step 2 gate (pr-to-video excepted — its preset is fixed), and fall back to the remembered voice when the request names none. general-video's discovery reads the same defaults. Recipes wire in at both ends: Step 0 checks for a matching recipe before the mode question — one question, plural-aware, and adopting one fills the brief, skips the design step, and drafts the storyboard from the frozen skeleton while every review gate still runs. The review loop's final look (§ 4) offers the freeze once after approval, and the confirmation teaches the recall phrase — the name is something the system reminds the user of, never something they must remember. The router recognizes a named recipe or "like last time" as a route. * docs(skills): the sketch pass names check, not the deprecated validate * feat(skills): intent-layer references — process, route briefs, capability menu, BRIEF.md format * feat(media-use): brief skeleton as the recipe's fourth artifact; flow/storyboard preference keys * feat(skills): the intent layer conducts every brief — workflows execute BRIEF.md * feat(skills): retire the mode preference key; sync catalog surfaces for intent layer * refactor(skills): dedupe router vs intent-layer guidance — one owner per rule * feat(skills): the design ask — own spec, pick by eye from showcases, or defer * docs(skills): the design ask says the honest line on capture routes * feat(skills): product-launch-video absorbs website-to-video as the tour angle * refactor(skills): keep product-launch-video pristine — a tour is brief intent, not a pipeline branch * feat(skills): production loop + genre lenses; general-video goes freeform (route yours, laws hold) * refactor(skills): /hyperframes is the front door - route tables and scope lists leave the workflows * docs(skills): review-loop pass across skill catalog * fix(cli): pass project dir to openStudioBrowser in background-server path * feat(skills): add pitch-round reference - verbalized sampling concept gate * feat(skills): wire pitch round into intent layer - completeness triage + route eligibility * feat(skills): editorial capability recommendations, handoff disciplines, menu-probe split * feat(skills): pitches carry their machinery; source-only-formed requests pitch the telling * feat(skills): companion goes director - ceiling treatment plus blueprint/rule citation discipline * fix(scripts): sandbox npx-leak guard - private npm global prefix keeps npx on the branch CLI * chore(skills): resync manifest hash after formatter pass reflowed general-video tables * fix(skills): recipe freeze reads workflow from BRIEF.md; style_preset records require workflow scope Two holes found by a live companion-run freeze: the agent-supplied --workflow contradicted the run's actual workflow (recipe.json said faceless-explainer, brief-skeleton said general-video), and the style_preset lookup missed because the preference had been recorded under the bare key. - freezeRecipe resolves the workflow from BRIEF.md frontmatter; the flag is a fallback for briefless projects and a contradicting flag is ignored (noted). - recordPreference refuses a bare style_preset — the scoped key is the only writable shape; freeze tolerates legacy bare records via read fallback. - review-loop § 4 / media-use SKILL / brief-format wording follow the machinery.
8.7 KiB
Motion Principles
Contents
- Guardrails
- What you do not do without being told
- Visual composition
- Image motion treatment
- Load-bearing GSAP rules
Guardrails
You know these rules but you violate them. Stop.
- Don't use the same ease on every tween. You default to
power2.outon everything. Vary eases like you vary font weights — no more than 2 independent tweens with the same ease in a scene. - Don't use the same speed on everything. You default to 0.4-0.5s for everything. The slowest scene should be 3× slower than the fastest. Vary duration deliberately.
- Don't enter everything from the same direction. You default to
y: 30, opacity: 0on every element. Vary: from left, from right, from scale, opacity-only, letter-spacing. - Don't use the same stagger on every scene. Each scene needs its own rhythm.
- Don't use ambient zoom on every scene. Pick different ambient motion per scene: slow pan, subtle rotation, scale push, color shift, or nothing. Stillness after motion is powerful.
- Don't start at t=0. Offset the first animation 0.1-0.3s. Zero-delay feels like a jump cut.
What You Don't Do Without Being Told
Easing is emotion, not technique
The transition is the verb. The easing is the adverb. A slide-in with expo.out = confident. With sine.inOut = dreamy. With elastic.out = playful. Same motion, different meaning. Choose the adverb deliberately.
Direction rules — these are not optional:
.outfor elements entering. Starts fast, decelerates. Feels responsive. This is your default..infor elements leaving. Starts slow, accelerates away. Throws them off..inOutfor elements moving between positions.
You get this backwards constantly. Ease-in for entrances feels sluggish. Ease-out for exits feels reluctant.
Speed communicates weight
- Fast (0.15-0.3s) — energy, urgency, confidence
- Medium (0.3-0.5s) — professional, most content
- Slow (0.5-0.8s) — gravity, luxury, contemplation
- Very slow (0.8-2.0s) — cinematic, emotional, atmospheric
Scene structure: build / breathe / resolve
Every scene has three phases. You dump everything in the build and leave nothing for breathe or resolve.
- Build (0-30%) — elements enter, staggered. Don't dump everything at once.
- Breathe (30-70%) — content visible, alive with ONE ambient motion.
- Resolve (70-100%) — exit or decisive end. Exits are faster than entrances.
Transitions are meaning
- Crossfade = "this continues"
- Hard cut = "wake up" / disruption
- Slow dissolve = "drift with me"
You crossfade everything. Use hard cuts for disruption and register shifts.
Choreography is hierarchy
The element that moves first is perceived as most important. Stagger in order of importance, not DOM order. Don't wait for completion — overlap entries. Total stagger sequence under 500ms regardless of item count.
Asymmetry
Entrances need longer than exits. A card takes 0.4s to appear but 0.25s to disappear.
Visual Composition
You build for the web. Video frames are not pages.
- Two focal points minimum per scene. The eye needs somewhere to travel. Never a single text block floating in empty space.
- Fill the frame. Hero text: 60-80% of width. You will try to use web-sized elements. Don't.
- Three layers minimum per scene. Background treatment (glow, oversized faded type, color panel). Foreground content. Accent elements (dividers, labels, data bars).
- Background is not empty. Radial glows, oversized faded type bleeding off-frame, subtle border panels, hairline rules. Pure solid #000 reads as "nothing loaded."
- Anchor to edges. Pin content to left/top or right/bottom. Centered-and-floating is a web pattern.
- Split frames. Data panel on the left, content on the right. Top bar with metadata, full-width below. Zone-based layouts, not centered stacks.
- Use structural elements. Rules, dividers, border panels. They create paths for the eye and animate well (scaleX from 0).
Image Motion Treatment
Never embed a raw flat image. Every image must have motion treatment:
- Perspective tilt: use
gsap.set(el, { transformPerspective: 1200, rotationY: -8 })+box-shadow— creates depth. Do NOT use CSStransform: perspective(...)as GSAP will overwrite it. - Slow zoom (Ken Burns): GSAP
scale: 1→1.04over beat duration — makes photos cinematic - Device frame: Wrap in a laptop/phone shape using CSS
border-radiusandbox-shadow - Floating UI: Extract a key element and animate it at a different z-depth for parallax
- Scroll reveal: Clip the image to a viewport window and animate
yposition
Load-Bearing GSAP Rules
Rules below came out of two independent website capture builds (2026-04-20) where compositions lint-clean and still ship broken — elements that never appear, ambient motion that doesn't scrub, entrance tweens that silently kill their target. The linter cannot catch these; the rules must be followed by the author.
-
No iframes for captured content. Iframes do not seek deterministically with the timeline — the capture engine cannot scrub inside them, so they appear frozen (or blank) in the rendered output. If the source you're stylizing is a live web app, use the screenshots from
capture/as stacked panels or layered images, not live embeds. -
Never overlap conflicting transform tweens on the same element. Sequential, non-overlapping transform phases are valid. The dangerous case is concurrent tweens or
from()tweens whoseimmediateRenderstates overwrite one another: for example, ayentrance plus a simultaneousscaleKen Burns tween on the same<img>. The element can remain invisible or offscreen with no lint warning. Fix the overlap in one of two ways:<!-- BAD: two transforms on one element --> <img class="hero" src="..." /> <script> tl.from(".hero", { y: 50, opacity: 0, duration: 0.6 }, 0); tl.to(".hero", { scale: 1.04, duration: beat }, 0); // kills the entrance </script> <!-- GOOD option A: combine into one tween --> <script> tl.fromTo( ".hero", { y: 50, opacity: 0, scale: 1.0 }, { y: 0, opacity: 1, scale: 1.04, duration: beat, ease: "none" }, 0, ); </script> <!-- GOOD option B: split across parent + child --> <div class="hero-wrap"><img class="hero" src="..." /></div> <script> tl.fromTo(".hero-wrap", { y: 50, opacity: 0 }, { y: 0, opacity: 1, duration: 0.6 }, 0); // entrance on parent tl.to(".hero", { scale: 1.04, duration: beat }, 0); // Ken Burns on child </script> -
Prefer
tl.fromTo()overtl.from()inside.clipscenes.gsap.from()setsimmediateRender: trueby default, which writes the "from" state at timeline construction — before the.clipscene'sdata-startis active. Elements can flash visible, start from the wrong position, or skip their entrance entirely when the scene is seeked non-linearly (which the capture engine does). ExplicitfromTomakes the state at every timeline position deterministic:// BRITTLE: immediateRender interacts badly with scene boundaries tl.from(el, { opacity: 0, y: 50, duration: 0.6 }, t); // DETERMINISTIC: state is defined at both ends, no immediateRender surprise tl.fromTo(el, { opacity: 0, y: 50 }, { opacity: 1, y: 0, duration: 0.6 }, t); -
Ambient pulses must attach to the seekable
tl, never baregsap.to(). Auras, shimmers, gentle float loops, logo breathing — all of these must be added to the scene's timeline, not fired standalone. Standalone tweens run on wallclock time and do not scrub with the capture engine, so the effect is absent in the rendered video even though it looks correct in the studio preview:// BAD: lives outside the timeline, never renders in capture gsap.to(".aura", { scale: 1.08, yoyo: true, repeat: 5, duration: 1.2 }); // GOOD: seekable, deterministic, renders tl.to(".aura", { scale: 1.08, yoyo: true, repeat: 5, duration: 1.2 }, 0); -
Hard-kill exiting inner elements at a scene boundary, not the
.clipitself. A non-clip element or wrapper whose visibility changes at a beat boundary may need a deterministic zero-durationtl.set()kill after its fade, because a later tween or siblingimmediateRendercan resurrect it. This is the explicit-boundary exception to the ban on rawvisibilitytweens. HyperFrames alone controls.cliplifecycle; never apply this pattern to the clip container.tl.to(innerEl, { opacity: 0, duration: 0.3 }, beatEnd); tl.set(innerEl, { opacity: 0, visibility: "hidden" }, beatEnd + 0.3); // non-clip kill
These are the exact rules with the exact code examples — don't summarize or shorten them. They exist because compositions that lint clean still ship broken without them.