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" } ``