Word Swap: Block Replaced in the Stick. Native 1920×1080, 7.5s at 30fps.
Shows how changing one word changes the whole idea: a sentence is set with the old word in the composing stick; the old block is lifted out and a vermilion replacement block drops in, re-pulling the lockup.
Motion. The lockup prints with oldWord; in the stick the old wood block lifts out (ease-in) and the new vermilion block drops in with a clack; the lockup re-pulls with newWord highlighted in red. Why it moves. change: physically swapping the block in the composing stick shows that one word flips the meaning.
Mount
Copy every manifest file into your project (plus af-galley-runtime). Mount with a unique host id, data-composition-id="af-galley-word-swap-16x9", data-composition-src="compositions/af-galley-word-swap-16x9.html", data-duration="7.5" and data-variable-values. Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled.
Content slots
Nested slots are JSON strings. Every slot is checked against constraints.json and measured against the layout before anything draws; the block stops with a message naming the slot and the fix (it never truncates or shrinks text).
label: {"type":"string","minLength":1,"maxLength":36}prefix (required): {"type":"string","minLength":1,"maxLength":32}oldWord (required): {"type":"string","minLength":1,"maxLength":12}newWord (required): {"type":"string","minLength":1,"maxLength":12}suffix: {"type":"string","minLength":0,"maxLength":32}note: {"type":"string","minLength":1,"maxLength":80}
oldWord is swapped for newWord mid-scene both in the stick and in the printed lockup.
Style: colourway (newsprint, blueprint, night), accent (optional hex), footer, exit (lift or cut).
Timing
7.5s. Everything has landed by 4.5s (60%), then the scene holds for reading (a pool of shop light drifts slowly across the sheet; text stays still) and the ink lifts off the sheet over the last 0.5 s, leaving clean paper.
Example
``json { "label": "Idea 2 of 3", "prefix": "I have to", "oldWord": "Endure", "newWord": "Use", "suffix": "this.", "note": "Replace passive endurance with active practice." } ``