46 of 46 in the Clay & Ink V2 pack

Before / After Toggle: Label & callout element for AI agents

Before and after: a segmented toggle flips from 'Before' to 'After' and the list beneath tidies itself.

  • 16:9native
  • 9:16native

Watermarked preview. The Clay & Ink V2 pack includes all 46 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Clay & Ink V2 pack. Add a `toggleSwap` beat to plan.json on a `footage` canvas with slots `label`, `a`, `b`, `before` and `after` 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: Plain text.My mornings
astringA: Plain text.Before
bstringB: Plain text.After
beforejsonBefore: JSON; keep the same shape as the default.["Phone in bed","Inbox at 7:05","Coffee at my desk"]
afterjsonAfter: JSON; keep the same shape as the default.["Phone in the hall","One page of writing","Coffee by the window"]

What your agent can change

Surface

Before and after: a segmented toggle flips from 'Before' to 'After' and the list beneath tidies itself. Set: creative. Category: label. Canvases: ok footage. Typical 5s; settles at 3.2s. Safe to sit beside a speaker (content stays on the left).

Editable (fill through plan.json slots)

  • label (string). Plain text.
  • a (string). Plain text.
  • b (string). Plain text.
  • before (json). JSON; keep the same shape as the default.
  • after (json). JSON; keep the same shape as the default.

Protected

Do not change the motion, easing, timing, the palette roles (colours come from frame.md → tokens.css), fonts, or the element's internal layout. Keep copy close to the default length (±30%) so it fits.

Safe editing

Set values in the beat's slots in plan.json, run tools/validate.mjs, rebuild, and check qa/contact.jpg. Never hand-edit the generated index.html or this element's code for a single video.

FAQ

What can my AI agent change in Before / After Toggle?

Your agent fills the label, a, b, before and after slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Clay & Ink V2 look.

Which aspect ratios does Before / After Toggle support?

Before / After Toggle is designed natively for 16:9 and 9:16. A typical beat lasts 5s.

How do I get Before / After Toggle?

Before / After Toggle is included in the Clay & Ink V2 pack, which is part of the AgentFrames All-access subscription along with 45 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 46

Get the full Clay & Ink V2 pack

Before / After Toggle comes as part of Clay & Ink V2: 46 elements, 4 starter videos and every size (16:9, 9:16), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

YouTube talking head (16:9) · 40s · made entirely with this pack

More in Clay & Ink V2

See all 46 elements in Clay & Ink V2 →