20 of 50 in the Bloomline pack

Before After: Diagram element for AI agents

Matched states exchange through a labelled seam..

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

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

Paste this into Claude Code

Use the AgentFrames Bloomline pack. Add a `beforeAfter` beat to plan.json on a `field` canvas with slots `label`, `title`, `body`, `before`, `after`, `sceneIndex` and `sceneTotal` 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":40}.WITH A REVIEW STEP
titlestringtitle: {"type":"string","minLength":1,"maxLength":52}.Same task, safer path.
bodystringbody: {"type":"string","minLength":1,"maxLength":90}.A pause before risky actions changes the outcome.
beforestringbefore: JSON string. {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":18},"detail":{"type":"string","minLength":1,"maxLength":46}},"required":["label","detail"]}.{"label":"Without review","detail":"The agent sends the refund straight away."}
afterstringafter: JSON string. {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":18},"detail":{"type":"string","minLength":1,"maxLength":46}},"required":["label","detail"]}.{"label":"With review","detail":"A person approves refunds over a limit."}
sceneIndexnumberZero-based footer position0
sceneTotalnumberTotal scenes for footer1

What your agent can change

Matched states exchange through a labelled seam.

Native 1920×1080, 8s at 30fps. Full-frame graphics block; use the matching aspect variant.

Install and mount

Copy every manifest file from path to target relative to your project; include registryDependencies. The shipped starters already contain everything. Use a unique host DOM id, the block's data-composition-id and data-composition-src, and native data-variable-values. HyperFrames scopes each mounted instance.

Edit

Edit this block's HTML directly or set per-instance variables on its mount. Simple slots are text/number values; nested slots are JSON strings, parsed and checked against constraints.json before anything draws (out-of-range input stops the block and sets data-bloomline-error on its root).

  • label: native string; {"type":"string","minLength":1,"maxLength":40}
  • title: native string; {"type":"string","minLength":1,"maxLength":52}
  • body: native string; {"type":"string","minLength":1,"maxLength":90}
  • before: JSON string; {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":18},"detail":{"type":"string","minLength":1,"maxLength":46}},"required":["label","detail"]}
  • after: JSON string; {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":18},"detail":{"type":"string","minLength":1,"maxLength":46}},"required":["label","detail"]}

Brand: brandName, series, headingFont (Fredoka/Montserrat), logo (empty or inline base64 image), paper, ink, pink, purple, orange, yellow, soft. Footer: sceneIndex (zero-based), sceneTotal.

Timing and limits

Everything lands by about 3 s and holds for reading; the last 0.4 s draws out. Copy is checked at six words per second within the 8 s scene, so shorten copy rather than stretching the scene. Numbers in charts must be your real figures or be labelled illustrative (the source/unit line stays on screen).

Source: editable HTML, local SVG/GSAP. See the pack NOTICE and font licences.

FAQ

What can my AI agent change in Before After?

Your agent fills the label, title, body, before, after, sceneIndex and sceneTotal 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 Bloomline look.

Which aspect ratios does Before After support?

Before After is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 8s.

How do I get Before After?

Before After is included in the Bloomline 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 Bloomline pack

Before After comes as part of Bloomline: 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) · 32s · made entirely with this pack

More in Bloomline

See all 50 elements in Bloomline →