Repository navigation
feat(kit): plan, restraint, object transitions, kinetic type and real mechanisms for html films - #35
Merged
Merged
Conversation
…object transitions and real mechanisms
…t uses an id twice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Gives html films more expressive range with five techniques, all chosen by Claude per film from the user's request and the theme. No new options or settings for the user.
Part of #16. Closes #36. Closes #37.
Changes
references/html-film.mdindex.html, Claude writes a short plan as a comment at the top of the page: one idea that carries the whole film, the palette (one accent), type roles, motion rules, and what this film will not use. It is decided from the request and the theme, never asked#stageand turn it into the next scene's part (a card becomes a step, a chart line becomes a connector); clear and rebuild only at chapter changesfilm.typeIn, at most once per scene; move a word the way it meanskit/player.js:film.typeIn(tl, el, at, { dur, stagger })splits an element's text into one span per character (Latin words and numbers stay whole) and raises them from below a mask line. Characters are hidden until their turn, so the layout check does not see them sticking out of the linekit/base.css: the mask and character styles fortypeInSKILL.md(3B): write the plan before the pagefilm.spotandfilm.arcnow measure SVG elements: an<svg>icon (it has nooffsetLeft, so the offsets came out NaN) and a shape inside a diagram whose viewBox scales it (GSAP moves it in the svg's own units, so the move was off by the scale). Agents no longer need to wrap icons in a div#idreaches every element with it, so a chip named like its scene hid the whole scene. The check also caught a past film (WIF v4) whose STS scene was drawn at 35% opacity because a card shared the scene's idLeft out on purpose: a set of visual styles (paper and pencil, blueprint, collage). It needs each style checked against the layout check and render time, so it can come after v1.
Inspired by prompts collected in awesome-opus5-5-videos (each prompt belongs to its creator). Only the techniques were taken; the guide and code are written from scratch, with no prompt text copied.
Demo
The 194 s "loop engineering" film was remade with the same script, narration, BGM and sound effects, following the new guide:
film.typeIncheckreports no layout issues; the build took 4 min 23 s with 7 pages.A second film, "the AI-native SDLC playbook" (155.7 s, 14 scenes), was made with this branch including the two fixes: six stages start in a row, become a ring that stays to the end, and a file chip travels the ring as intent.md, spec.md, plan.md, diff and tests, and PR. A point inside the metric chart (an SVG shape in a scaled viewBox) and a bell icon (an
<svg>root) are moved withfilm.spot/film.arc.checkreports no layout issues.Test plan
make check: lint, format, typecheck, 110 tests with the coverage gate, quality gatesfilm.typeInhides the characters before their turn, keeps Latin words whole, settles them on one baseline left to right, and the page has no layout issues<svg>icon and a shape inside a 2x viewBox reach their targets; a page with an id used twice fails to load. Both fail on the player before the fix