Dust dissolve card reveal
The clip opens on a whole picture: a line over a card that lists four recurring charges, each with a short figure (a monthly price, a size). If you give a brand, your product's name stands above the line from the first frame to the last. A stroke is drawn under the second half of the line, from its left end, between 0.05 and 0.35 s. Then the second line comes up (at 0.55 s) and, 0.05 s after it has begun to rise, a band of light starts down the card (at 0.60 s); as its centre reaches each row, the row is marked (the service's tile and its price turn to the accent), one after the other, from the top. When the four are marked, a gust crosses the picture from left to right. The line, the second line and the card are eaten away along a ragged edge, and every grain that leaves the edge is a speck of what was there (ink from the letters, accent from the marks, paper from the card) and is blown off to the right; the product's name is not part of it and stays. The closing line lay under the card from the start and is shown only behind the gust's edge, so it is uncovered where the dust clears; nothing is typed. A small chip comes up last: its base and its badge with the tick arrive first, then the number in it, which reads 0 until then, rolls up to its final value like an odometer, each digit in a window of its own, and the shot is done. It is one shot: no title card, no end card, no photo, nothing generated. Everything is drawn in code, in the three series palettes.
Use this skill when
- You need a short clip that says "we found these and they are gone": unused subscriptions, stale tasks, old licences,
forgotten files. Four items on a card, each with a short label and a number.
- You want one held shot with a clear cause and effect (the band finds, the gust clears, the number lands), in 16:9 or 9:16,
with your own words.
- The words are short: two lines, a card title, four names with prices, a closing line and a chip.
Do not use
- For a clip that needs a real product screen, a real person, a photo, footage or sound: the card is drawn for this skill
and the clip has no audio track.
- For more or fewer than four items, or for a different set of pieces: the card, the beat and the dust are fixed; only the
words, the palette, the aspect and the timing change (change the layout in effect/index.mjs, see Motion and layout).
- For a clip that needs a logo or any picture of a brand:
brand is one line of text, nothing more. Your own product's name
goes there and is yours to use. The name of another company, product or model may appear in the words only if you have the right to use it. The bundled default clip names no real company, product or model: its four services are made up.
Inputs (clip.json)
aspect (16:9 or 9:16), palette (paper, clay or night), copy and an optional timing. Every copy field has a default, so a clip can set only some of them; the examples write them all out so you can see every field. The one exception is brand: it has no default and the examples leave it out, so a clip without it names nobody.
| Field | What it says | Where it shows | Fit | |---|---|---|---| | headline | the first half of the opening line, for example Unused plans | the top, from the first frame | one row with the second half (16:9) or its own row (9:16) | | headlineEm | the second half, underlined by the stroke, for example still bill you. | next to the first half, one space of the typeface apart (16:9), or under it (9:16) | shrinks to 64 units (56 in 9:16), then warns | | scanLine | the second line, for example Four sat unopened for 90 days. | under the stroke, comes up at 0.55 s | shrinks to 30 units, then warns | | card.title | the card's title | the top of the card | shrinks, then warns | | items | exactly four charges, each { "name", "price" }; price is any short text ($9/mo, 3.1 GB, 12 min) | the card's four rows; the first letter of the name is the tile; the price is shown as written, on the pill at the right | shrinks to 24 units, then warns | | closing | the closing line | in the middle of the frame, uncovered behind the gust's edge between 2.5 and 3.5 s | up to two lines, shrinks to 60 units (56 in 9:16), then warns | | chip.text | the chip's words; {n} marks where the rolling number goes, for example Saves ${n} a month or {n} GB freed | the chip, from 4.40 s | shrinks to 28 units, then warns | | chip.value | the number that rolls: digits with an optional . or , inside, at most 8 characters, for example 63 or 13.5 | the chip | one number | | brand | your own product's name (optional, text only, no logo) | one line above the opening line, centred, in the line's typeface, from the first frame to the last; the gust leaves it where it is | 48 units, shrinks to 44, then warns |
Text is sized from the bundled fonts: a line that does not fit even at its smallest size is a warning that names the field, and --production refuses it. All type is 24 units or more (16 px in a 720p preview); the name in brand is 44 or more.
Three of these fields are easy to misread:
price is any short text and is shown exactly as written; the card does not format it and does not look at its unit. When
every price contains a number, the run adds those numbers up (the first number in each price, with an optional decimal point or comma and one or two digits after it) and compares the total with chip.value: it compares numbers only, never units, so 3.1 GB and 1.4 GB add up to 4.5 whatever the unit is.
chip.text has one placeholder, {n} (the letter n between curly braces). The clip puts the rolling number there and shows
every other character as written, so a $ is only a dollar sign. In Saves ${n} a month the $ in front of the brace is a literal dollar sign that stays on the screen and {n} is what gets replaced: with chip.value 63 the chip reads Saves $63 a month. A text without a currency sign works the same way: {n} GB freed with chip.value 13.5 reads 13.5 GB freed. A chip.text without {n} stops the run.
chip.value with decimals: a . or , followed by one or two digits at the end is the decimal point. Until the number
rolls the chip shows the plain start value, 0 (0.0 with one decimal, 0.00 with two), never a row of zeros; when it starts to roll, the places a larger number needs (the tens, the hundreds) come in, each digit rolls in a window of its own, and the point and any other separator stand still. 13.5 starts as 0.0 and lands on 13.5; 63 starts as 0 and lands on 63.
Keep the clip in step
The card and the sentences tell one story, and the chip's number is what the four prices add up to. Change these together:
| You change | Then also set | Because | |---|---|---| | card.title, items | headline, headlineEm, scanLine, closing, chip.text | the sentences are about the card | | headline, headlineEm, scanLine, closing, chip.text | card.title, items | the card is about the sentences | | the four prices | chip.value | the chip is their sum (9 + 12 + 18 + 24 is 63) | | brand | nothing | the name is free |
If you rewrite one side and leave the other at the defaults, the clip is valid but says two things: the run prints a warning that names the fields (it does not stop --production; act on it before you deliver). When every price has a number and chip.value is not their sum, the run prints a warning too and names copy.chip.value and copy.items[].price; it compares the numbers only, not the units.
Aspects and palettes
- 16:9 (1920 x 1080): the opening line in one row (its two halves one space of the typeface apart), the second line under
its stroke, the card (1080 units wide) under them; the group is centred on the canvas and the outer 96 units stay free. 9:16 (1080 x 1920): the two halves of the line stacked, the card 940 units wide, the group centred on the middle of the safe area; everything that has to be read lies between 420 and 1361 px (the card's lower edge), inside the platforms' safe area (nothing to be read within 200 px of the top or 340 px of the bottom). With a brand the name is the top of the group and the group is centred with it: in 16:9 the name stands at y 100 and the line, the second line and the card are about 40 units lower than without it; in 9:16 the name stands at y 379 and everything to be read lies between 379 and 1402 px. Every line and the card are centred sideways. Only the top and the bottom are kept clear: the column of buttons that the platforms put along the right-hand edge can cover the price pills on the card's right side, and the clip leaves no room for it. The first frame shows the line and the whole card in both (and the name, when there is one).
paper (light, the default), clay and night (dark card, so the accent reads). The stroke, the band, the marks and the
chip's badge take the palette's accent, and the words on the marks take its ink-on-accent colour.
Timing
timing is optional; every value is in seconds and a value outside its range stops the run with the field name.
| Field | Default | Range | Moves | |---|---|---|---| | lead | 0.05 | 0.05 to 0.3 | when the stroke under the line starts, and so everything after it (the scan starts 0.55 s later: at 0.60 s) | | pause | 0.30 | 0.2 to 0.35 | the stillness between the last mark and the gust (a reviewer's still sits in the middle of it); the stillness before the second line and before the chip is fixed at 0.2 s | | scan | 1.60 | 1.2 to 1.75 | how long the band of light takes down the card | | dust | 1.00 | 0.8 to 1.15 | how long the gust's edge takes to cross the picture | | roll | 0.80 | 0.6 to 0.95 | how long the number rolls |
The clip is 7.7 s and must end with at least 1.2 s of stillness (the default is 2.05 s, and 1.3 s with every value at the slowest of its range). Each range is one the shot takes on its own, so no combination of values leaves less than that.
First run: what gets downloaded
npm ci in this folder installs HyperFrames 0.8.164 and puppeteer-core (about 120 MB, usually under a minute on a normal link).node scripts/doctor.mjs. On a machine that has never rendered with HyperFrames it fails at render page 1920×1080
("ok": false, exit code 1). That is expected: a desktop Chrome gives HyperFrames a smaller page than the frame (1920 x 993 for a 1080 p frame in Chrome 156), and every rendered frame would end in a black band. Fix it once with the browser HyperFrames brings itself, Chrome Headless Shell: a download of about 93 MB (193 MB unpacked, into ~/.cache/hyperframes/chrome; about 20 seconds on a fast link, several minutes on a slow one). Run it with its output sent to a file:
HYPERFRAMES_NO_TELEMETRY=1 DO_NOT_TRACK=1 node_modules/.bin/hyperframes browser ensure > browser-ensure.log 2>&1
The redirect matters: when the output is not a terminal (an agent's shell, a CI log) the progress spinner redraws itself over and over, so the log is a very long file instead of a few lines (how long varies a lot from run to run), and the command has no quiet switch. Do not print the file. The exit code (0 means done) and the next node scripts/doctor.mjs, which must now say "ok": true and exit 0, are what to check.
- Nothing else is downloaded, and telemetry and update checks are switched off in every command the scripts run.
There is no photo, no background removal and no footage in this clip, so nothing else needs installing.
Workflow
- In this folder run
npm ci, then node scripts/doctor.mjs. It prints JSON and exits 0 when "ok": true, 1 when it is
not. Fix any required item it marks as failing ("required": true and "ok": false) before going on (on a new machine the browser is the first: see First run). One item is always listed and is not required: background removal (only for footage with a background) says "ok": false until its runtime and model have been downloaded, and you can ignore it, because this clip has no footage to cut out.
- Make a project folder and copy
examples/default/clip.json (or examples/vertical/clip.json) into it. Edit the
copy, the palette and the aspect, keeping the clip in step.
- Render:
node scripts/run.mjs <projectFolder> --production. The film is <projectFolder>/clip-16x9.mp4 (or
clip-9x16.mp4), 30 fps H.264. --aspect and --palette override the file. --production refuses to render when a line of copy does not fit (the warning names the field and says it is too long), which is what you want for anything you deliver; the other warnings (the card and the sentences say different things, the chip is not the sum of the prices) do not stop it: the film is made and the warnings are printed, so read them before you hand it over.
- Look at the four held moments (the line over the card; all four charges marked; the closing line where the card was; the
chip with its number and tick). <projectFolder>/qa/holds.jpg is a small overview: use it for the sequence and the layout. The type on the card is small in the overview, so also look at single frames of the film at full size (for example ffmpeg -ss 2.35 -i <film> -frames:v 1 marked.png), at a few frames in the middle of the gust (2.7 to 3.5 s), where the dust is, and at the number while it rolls (4.9 to 5.6 s). Check every word against clip.json and that the card, the sentences and the chip agree.
- Check the file:
node scripts/validate-video.mjs <projectFolder>/clip-16x9.mp4 (use clip-9x16.mp4 for 9:16; exit 0
means it passes: H.264, yuv420p, 30 fps, a supported canvas, no blank frame).
- Write the hand-off note yourself (no script makes it), from the template under Output contract, and save it as
<projectFolder>/handoff.txt.
Output contract
clip-<aspect>.mp4: H.264, yuv420p, 30 fps, no audio track, 7.7 s (231 frames). 16:9 is 1920 x 1080 and 9:16 is
1080 x 1920.
- One shot. Frame 0 shows a whole picture: the opening line and the card with its title and four charges. Nothing is
built up from nothing; there is no title card, summary card or end card.
- The beat, with the default timing: the stroke under the line is drawn from 0.05 to 0.35 s. The second line comes up at
0.55 s (0.4 s) and the band of light starts down the card at 0.60 s (1.6 s, to 2.20 s). The band's centre reaches the four rows at 1.08, 1.35, 1.62 and 1.90 s and each row is marked over the next 0.3 s (the tile and the price pill turn to the accent). The gust's edge crosses the picture from 2.50 to 3.50 s: the first lines and the card are eaten away along a ragged edge, the closing line is uncovered behind it (a little behind the last visible pixel of the card, so no letter of it ever lies on card that is still there), and 540 grains leave the edge, each in the air for 0.6 to 0.9 s and gone by 4.20 s. The chip comes up at 4.40 s (0.35 s) and its badge pops at 4.50 s with the tick drawn in it; only when they are in place, at 4.85 s, does the number roll, to 5.65 s, each digit inside a window of its own. Until it rolls the number reads the plain start value (0, or 0.0 with one decimal); the extra places a larger number needs come in from 4.90 to 5.20 s, while it rolls. Nothing moves after 5.65 s: 2.05 s of stillness to the last frame. With brand set, the name stands above the opening line from the first frame to the last: it does not move or fade, the gust leaves it where it is, and the group under it sits lower to make room; nothing else changes. The closing line and the chip stand together in the middle of the frame (in 9:16 inside the safe area).
- The dust is computed before any frame is drawn from a fixed seed (147): the same clip gives the same grains in every render.
- Four held moments in this order: (1) the line over the card; (2) all four charges marked, the second line up; (3) the
card gone, the closing line where it was; (4) the chip with its number and tick.
- The words are the ones in
clip.json; no other text and no logo appears. The only name on screen is the one you put in
brand: without it the clip names nobody. Text stays out of the outer 96 units of the 16:9 frame; in 9:16 nothing to be read lies within 200 px of the top or 340 px of the bottom; no frame is blank.
- Also, written by the run:
build/ (the editable HyperFrames project), qa/report.json and qa/holds.jpg. The hand-off note
handoff.txt is not written by any script: you write it, from the template below, and save it next to clip.json.
Hand-off note
The run does not write this file. Write it yourself from this template (keep its six lines), save it as <projectFolder>/handoff.txt, next to clip.json, and give the user its text with the film's path:
Film: <path>/clip-<aspect>.mp4 (H.264, <width> x <height>, 30 fps, 7.7 s, no audio) Words: lines "<headline> <headlineEm>" / "<scanLine>"; card "<title>" with "<name 1>" <price 1> / "<name 2>" <price 2> / "<name 3>" <price 3> / "<name 4>" <price 4>; closing "<closing>"; chip "<chip.text>" = <chip.value>; brand "<brand | none>" Look: <aspect>, palette <palette>, timing <defaults | the values you changed> Pictures: none (everything is drawn in code) Checks: run.mjs --production <passed | the warnings>; validate-video.mjs <its output line>; card, sentences and chip agree <yes | what you changed> Open: <what the user still has to decide or supply, or "none">
Motion and layout
references/motion-spec.md: every time, frame and curve; the dust's rules; the sections and held moments; what to keep when
you change the effect.
references/layouts.md: canvases, boxes and type of the lines, the card, the closing line and the chip in both aspects, fit
rules, palettes.
Content changes in clip.json; motion changes in effect/index.mjs.
Failure rules
- If the run or the validator fails, do not deliver the film. Fix the cause and render again.
- Copy that does not fit is a warning, and
--production refuses it (no film is made): shorten the line named in the message. - The other warnings do not stop
--production: the card and the sentences say different things, or the chip is not the sum
of the prices (see "Keep the clip in step"). The film is made, and a run with any warning ends with QA passed with N warning(s) and lists them again as its last lines: that is not a clean pass. Act on each one before you deliver.
- A timing out of range or a tick too close to the end stops the run with the field name.
- When the run reports a browser that crops the page, do what the report says (
doctor.mjs) before rendering. - Use words you may use: your own product's name (in
brand) is yours; another company's, product's or model's name only if
you have the right to it. Never someone else's logo, screen, footage or identity.
Reference demo
The marketplace preview is rendered from examples/default: the line Unused plans still bill you., the second line Four sat unopened for 90 days., the card Recurring charges with Zibbly Backup $9/mo, Gloomberry Reads $12/mo, Plinkfit $18/mo and Wonkle TV $24/mo, the closing line Cancelled before the next bill. and the chip Saves $63 a month, in the paper palette. The four services and all the words are made up for this skill and name no real company, product or model; brand is not set.