7 of 50 in the Gumdrop pack

Comparison: Side by Side: Diagram element for AI agents

Two alternatives compared on the same basis. Two candy headers pop in, then each row names what is being compared and shows both answers side by side, one row at a time; the winning side gets a raised card and a burst..

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

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

Paste this into Claude Code

Use the AgentFrames Gumdrop pack. Add a `comparison` beat to plan.json on a `night` canvas with slots `title`, `leftLabel`, `rightLabel`, `rows` and `pick` 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
titlestringtitle: {"type":"string","minLength":1,"maxLength":40}.Cramming vs spacing
leftLabelstringleftLabel: {"type":"string","minLength":1,"maxLength":18}.Cramming
rightLabelstringrightLabel: {"type":"string","minLength":1,"maxLength":18}.Spacing
rowsstringrows: JSON string. {"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":22},"left":{"type":"string","minLength":1,"maxLength":40},"right":{"type":"string","minLength":1,"maxLength":40}},"required":["label","left","right"]}}.[{"label":"Time","left":"One long night","right":"10 minutes a day"},{"label":"Feels like","left":"Easy, familiar","right":"A bit harder"},{"label":"A month later","left":"Mostly gone","right":"Still there"}]
pickenumpick: {"type":"string","enum":["left","right","none"]}.right

What your agent can change

Comparison: Side by Side. Native 1920×1080, 7s at 30fps.

Two alternatives compared on the same basis. Two candy headers pop in, then each row names what is being compared and shows both answers side by side, one row at a time; the winning side gets a raised card and a burst.

Motion. Headers spring in; the centre divider draws down; each row label rises, then its two answers pop in a beat apart (spring scale); the winner's card scales up behind its column and its header squashes with a burst of candy bits. Why it moves. change: the same rows on both sides keep the comparison fair, and the card makes the verdict readable at a glance.

Mount

Copy every manifest file into your project (plus af-gumdrop-runtime). Mount with a unique host id, data-composition-id="af-gumdrop-comparison-16x9", data-composition-src="compositions/af-gumdrop-comparison-16x9.html", data-duration="7" 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).

  • title: {"type":"string","minLength":1,"maxLength":40}
  • leftLabel (required): {"type":"string","minLength":1,"maxLength":18}
  • rightLabel (required): {"type":"string","minLength":1,"maxLength":18}
  • rows (required): {"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":22},"left":{"type":"string","minLength":1,"maxLength":40},"right":{"type":"string","minLength":1,"maxLength":40}},"required":["label","left","right"]}}
  • pick: {"type":"string","enum":["left","right","none"]}
  • Rows are read in the same order on both sides in every size. title is optional.
  • pick raises a card behind the winning column; none keeps them equal.

Style: colourway (night, cream, grape), accent (optional hex), footer, exit (pop or cut).

Timing

7s. Everything has landed by 4.2s (60%), then the scene holds for reading (the small candy shapes in the margins bob at a residual drift, text stays still) and every piece pops away over the last 0.5 s, leaving the empty ground.

Example

``json { "title": "Cramming vs spacing", "leftLabel": "Cramming", "rightLabel": "Spacing", "rows": "[{\"label\":\"Time\",\"left\":\"One long night\",\"right\":\"10 minutes a day\"},{\"label\":\"Feels like\",\"left\":\"Easy, familiar\",\"right\":\"A bit harder\"},{\"label\":\"A month later\",\"left\":\"Mostly gone\",\"right\":\"Still there\"}]", "pick": "right" } ``

FAQ

What can my AI agent change in Comparison: Side by Side?

Your agent fills the title, leftLabel, rightLabel, rows and pick 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 Gumdrop look.

Which aspect ratios does Comparison: Side by Side support?

Comparison: Side by Side is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 7s.

How do I get Comparison: Side by Side?

Comparison: Side by Side is included in the Gumdrop 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 Gumdrop pack

Comparison: Side by Side comes as part of Gumdrop: 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) · 60s · made entirely with this pack

More in Gumdrop

See all 50 elements in Gumdrop →