33 of 50 in the Galley pack

Word Swap: Block Replaced in the Stick: Section title element for AI agents

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..

  • 1:1native
  • 16:9native
  • 9:16native
  • 4:5native

Watermarked preview. The Galley pack includes all 50 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Galley pack. Add a `wordSwap` beat to plan.json on a `newsprint` canvas with slots `label`, `prefix`, `oldWord`, `newWord`, `suffix` and `note` from my script. Then run validate → build → qa and show me qa/contact.jpg.

Variables

The slots your agent fills from your script, through plan.json.

SlotTypeWhat it holdsExample
labelstringlabel: {"type":"string","minLength":1,"maxLength":36}.Idea 2 of 3
prefixstringprefix: {"type":"string","minLength":1,"maxLength":32}.I have to
oldWordstringoldWord: {"type":"string","minLength":1,"maxLength":12}.Endure
newWordstringnewWord: {"type":"string","minLength":1,"maxLength":12}.Use
suffixstringsuffix: {"type":"string","minLength":0,"maxLength":32}.this.
notestringnote: {"type":"string","minLength":1,"maxLength":80}.Replace passive endurance with active practice.

What your agent can change

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." } ``

FAQ

What can my AI agent change in Word Swap: Block Replaced in the Stick?

Your agent fills the label, prefix, oldWord, newWord, suffix and note slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Galley look.

Which aspect ratios does Word Swap: Block Replaced in the Stick support?

Word Swap: Block Replaced in the Stick is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 7.5s.

How do I get Word Swap: Block Replaced in the Stick?

Word Swap: Block Replaced in the Stick is included in the Galley pack, which is part of the AgentFrames All-access subscription along with 49 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

This is 1 of 50

Get the full Galley pack

Word Swap: Block Replaced in the Stick comes as part of Galley: 50 elements, 4 starter videos and every size (16:9, 9:16, 4:5, 1:1), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

Wide (16:9) · 62s · made entirely with this pack

More in Galley

See all 50 elements in Galley →