42 of 45 in the Frost pack

Before / After Stat: Stat & chart element for AI agents

Big-number stat on a glass panel: number counts up, before/after bars fill (after in teal).

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

Watermarked preview. The Frost pack includes all 45 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Frost pack. Add a `statCompare` beat to plan.json on a `n` canvas with slots `eyebrow`, `value`, `unit`, `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
eyebrowstringEyebrow: Plain text.Time saved every week
valuenumberValue: Plain text.12
unitstringUnit: Plain text.hrs
beforejsonBefore: JSON array; keep the same shape as the default.["Before",15,"15 hrs"]
afterjsonAfter: JSON array; keep the same shape as the default.["After",3,"3 hrs"]

What your agent can change

Surface

Big-number stat on a glass panel: number counts up, before/after bars fill (after in teal). Category: stat. Canvases: ok n, f, m. Typical 4s; settles at 2s.

Editable (fill through plan.json slots)

  • eyebrow (string). Plain text.
  • value (number) EXAMPLE DATA: replace or get client sign-off. Plain text.
  • unit (string). Plain text.
  • before (json) EXAMPLE DATA: replace or get client sign-off. JSON array; keep the same shape as the default.
  • after (json) EXAMPLE DATA: replace or get client sign-off. JSON array; keep the same shape as the default.

Optional style/layout overrides: dark, y. 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 Stat?

Your agent fills the eyebrow, value, unit, before and after slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Frost look.

Which aspect ratios does Before / After Stat support?

Before / After Stat is designed natively for 9:16 and stage-fits into 16:9. A typical beat lasts 4s.

How do I get Before / After Stat?

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

Get the full Frost pack

Before / After Stat comes as part of Frost: 45 elements, 4 starter videos and every size (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 Frost

See all 45 elements in Frost →