Worked Example: Annotated Polaroid. Native 1920×1080, 7.5s at 30fps.
Show an example and point out its parts. A polaroid (a photo cut-out on paint in a white frame) is dealt onto the page; two or three annotation strips land around it with marker arrows to their parts; the caption is typed under the photo.
Motion. The polaroid deals up from below and presses flat; each strip deals in from its side (0.6 s apart) and its arrow draws to the photo (ease in-out); the caption types on. Why it moves. explanation: the arrows connect each word to the part it names.
Mount
Copy every manifest file into your project (plus af-pasteup-runtime). Mount with a unique host id, data-composition-id="af-pasteup-worked-example-16x9", data-composition-src="compositions/af-pasteup-worked-example-16x9.html", data-duration="7.5" 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":36}object (required): {"type":"string","enum":["eye","tower","mountain","wave","books","hand","bulb","clock","plane","key","cup","megaphone","phone","plant","stairs","lens","face-a","face-b","flower-pink","flower-orange","flower-white","flower-yellow"]}caption (required): {"type":"string","minLength":1,"maxLength":24}notes (required): {"type":"array","minItems":1,"maxItems":3,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":18}},"required":["label"]}}
- Arrows point at fixed spots on the photo (upper right, middle left, lower right) in note order.
object picks one of the bundled photo cut-outs: eye, tower, mountain, wave, books, hand, bulb, clock, plane, key, cup, megaphone, phone, plant, stairs, lens, face-a, face-b, flower-pink, flower-orange, flower-white, flower-yellow.
Style: colourway (newsprint, night, blush), accent (optional hex for the lead paint), footer, exit (shuffle or cut).
Timing
7.5s. Everything has landed by 4.5s (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 { "title": "A good daily page", "object": "plant", "caption": "Day 12", "notes": "[{\"label\":\"One clear goal\"},{\"label\":\"Messy is fine\"},{\"label\":\"Ends mid-idea\"}]" } ``