Poll Result. Native 1920×1080, 5s at 30fps. Sits over the creator's full-bleed footage (transparent outside its own parts).
A poll on a bib card: the question on the strip, two or three options as bars that fill to their share, the winner in the accent.
Motion. The card pins on; each bar fills (ease-out) 0.12 s apart while its percentage counts up and lands. Why it moves. attention: the race between the bars is the reveal.
Mount
Copy every manifest file into your project (plus af-split-runtime). Mount with a unique host id, data-composition-id="af-split-poll-16x9", data-composition-src="compositions/af-split-poll-16x9.html", data-duration and data-variable-values. A longer data-duration than 5s extends the hold (the exit moves to the end of the mount). Use the variant whose size matches your project: 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).
question (required): {"type":"string","minLength":1,"maxLength":24}options (required): {"type":"array","minItems":2,"maxItems":3,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":16},"pct":{"type":"number","minimum":0,"maximum":100}},"required":["label","pct"]}}backdrop: {"type":"string","minLength":0,"maxLength":200}
pct values must add up to 100.- 16:9 uses the empty third beside the speaker; 9:16 the band under the chin (clear of the right-hand platform buttons); 4:5 and 1:1 the lower zone. Move it with
zoneTop. backdrop is a still of the speaker so the block reads on its own; set it to "" over your live footage.
Brand and layout
Brand variables (defaults from brand.json): colourway, accent, creator, handle, channel, tagline, monogram, ctaFollow, ctaLink, ctaCode. Layout: capTop (caption top, px), zoneTop (card zone top, px), exit (lift or hold).
Example
``json { "question": "Music on long runs?", "options": "[{\"label\":\"Always\",\"pct\":58},{\"label\":\"Podcasts\",\"pct\":31},{\"label\":\"Silence\",\"pct\":11}]", "backdrop": "assets/af-split/media/speaker-16x9.jpg" } ``