Before / After: Two Board States. Native 1920×1080, 6.5s at 30fps.
The same small board at two times. The "before" board is set down and fills a few squares; then the "after" board fills square by square to its share, each with its percentage and a line of text.
Motion. Header tiles and boards are set down; filled squares pop in one after another (back-out); the value and text rise when the board is done. Why it moves. change: the same board at two moments makes the difference countable.
Mount
Copy every manifest file into your project (plus af-tabletop-runtime). Mount with a unique host id, data-composition-id="af-tabletop-before-after-16x9", data-composition-src="compositions/af-tabletop-before-after-16x9.html", data-duration="6.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).
label: {"type":"string","minLength":1,"maxLength":20}title (required): {"type":"string","minLength":1,"maxLength":40}before (required): {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":14},"value":{"type":"integer","minimum":0,"maximum":100},"text":{"type":"string","minLength":1,"maxLength":50}},"required":["value","text"]}after (required): {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":14},"value":{"type":"integer","minimum":0,"maximum":100},"text":{"type":"string","minLength":1,"maxLength":50}},"required":["value","text"]}
- Each board has 25 squares;
value is a percentage, so the filled count is rounded to the nearest square.
Style: colourway (cream, kitchen, sky), accent (optional hex), footer, round (e.g. 3/5), exit (lift or cut).
Timing
6.5s. Everything has landed by 3.9s (60%), then the scene holds for reading (the lamp light drifts slowly over the table; text stays still) and every piece is lifted off the table over the last 0.5 s, leaving the empty table.
Example
``json { "label": "Round 4", "title": "How much of the pot is interest", "before": "{\"label\":\"Year 1\",\"value\":3,\"text\":\"Almost all of it is what you paid in\"}", "after": "{\"label\":\"Year 10\",\"value\":31,\"text\":\"Nearly a third is interest\"}" } ``