5 of 44 in the Rouge pack

Before / After Arch: Social post element for AI agents

Before / after in one arch: the arch reveals on the before shot, then a red line sweeps up through it wiping to the after shot as the label flips and a script note writes on.

Designed natively for 4:5. Above: the same element in the pack's 16:9 layout.
  • 1:1stage-fit
  • 16:9stage-fit
  • 9:16stage-fit
  • 4:5native

Watermarked preview. The Rouge pack includes all 44 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Rouge pack. Add a `beforeAfterArch` beat to plan.json on a `b` canvas with slots `eyebrow`, `before`, `after`, `note`, `photo`, `photo2`, `photoPos2`, `swapAt` and `beforeFilter` 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
eyebrowstringEyebrow: Plain text.my profile glow-up
beforestringBefore: Plain text.before
afterstringAfter: Plain text.after
notestringNote: Plain text.same me, better bio
photostringPhoto: Plain text.
photo2stringPhoto2: Plain text.
photoPos2stringPhoto Pos2: Plain text.50% 25%
swapAtnumberSwap At: Plain text.1.4
beforeFilterstringBefore Filter: Plain text.grayscale(1) contrast(.9)

What your agent can change

Surface

Before / after in one arch: the arch reveals on the before shot, then a red line sweeps up through it wiping to the after shot as the label flips and a script note writes on. Category: post. Canvases: ok b, p, h, c, g; avoid r (the element vanishes on these). Typical 4.6s; settles at 3.2s.

Editable (fill through plan.json slots)

  • eyebrow (string). Plain text.
  • before (string). Plain text.
  • after (string). Plain text.
  • note (string). Plain text.
  • photo (string). Plain text.
  • photo2 (string). Plain text.
  • photoPos2 (string). Plain text.
  • swapAt (number). Plain text.
  • beforeFilter (string). Plain text.

Optional style/layout overrides: ground, photoPos. Use them only to fix fit, never to change the brand.

Protected

Do not change the motion, timing, easing, bounce, the palette roles (colours come from frame.md → tokens.css), fonts, or the element's internal layout. Keep copy close to the default length (±25%) 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 Arch?

Your agent fills the eyebrow, before, after, note, photo, photo2, photoPos2, swapAt and beforeFilter slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Rouge look.

Which aspect ratios does Before / After Arch support?

Before / After Arch is designed natively for 4:5 and stage-fits into 1:1, 9:16 and 16:9. A typical beat lasts 4.6s.

How do I get Before / After Arch?

Before / After Arch is included in the Rouge pack, which is part of the AgentFrames All-access subscription along with 43 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 44

Get the full Rouge pack

Before / After Arch comes as part of Rouge: 44 elements, 4 starter videos and every size (4:5, 1:1, 9:16, 16:9), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

Side by side (16:9) · 30s · made entirely with this pack

More in Rouge

See all 44 elements in Rouge →