Versus: Struck Out / Pasted Over. Native 1920×1080, 8s at 30fps.
One to three swaps: what to stop doing and what to do instead. Each habit is typed on a cream slip and struck through with a paint marker; its replacement is pasted beside it (16:9) or below (other sizes) on a bright paint strip.
Motion. Header strips deal in; per row (about 1 s apart): the slip deals in from the left and types on, the marker strike scribbles through it (ease in-out) and the slip fades back, an arrow draws across, the paint strip deals in from the right and presses flat. Why it moves. change: the old habit is literally crossed out and pasted over, which is the before/after.
Mount
Copy every manifest file into your project (plus af-pasteup-runtime). Mount with a unique host id, data-composition-id="af-pasteup-versus-16x9", data-composition-src="compositions/af-pasteup-versus-16x9.html", data-duration="8" 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).
leftLabel (required): {"type":"string","minLength":1,"maxLength":18}rightLabel (required): {"type":"string","minLength":1,"maxLength":18}rows (required): {"type":"array","minItems":1,"maxItems":3,"items":{"type":"object","properties":{"left":{"type":"string","minLength":1,"maxLength":40},"right":{"type":"string","minLength":1,"maxLength":36}},"required":["left","right"]}}
- 16:9 shows the two columns side by side with an arrow per row; the other sizes put the "instead of" list on top and the "try" list below, in the same order, with one arrow between them.
Style: colourway (newsprint, night, blush), accent (optional hex for the lead paint), footer, exit (shuffle or cut).
Timing
8s. Everything has landed by 4.8s (60%), then the scene holds for reading (the paint at the page edges drifts at a slow residual rate; text stays still) and every scrap is shuffled off the page in its own direction over the last 0.6 s, leaving the bare page.
Example
``json { "leftLabel": "Instead of", "rightLabel": "Try", "rows": "[{\"left\":\"Ten half-finished ideas\",\"right\":\"One finished thing\"},{\"left\":\"Waiting for inspiration\",\"right\":\"A booked 20 minutes\"},{\"left\":\"Perfect in your head\",\"right\":\"Good on the page\"}]" } ``