Toggle poll (segmented control). Native 1920×1080, 5s at 30fps. Sits over the creator's footage (transparent outside its own parts).
A poll as a segmented control: two or three options in a white bar, a green pill that steps across them as you name each, then settles on the winner while the percentages count up under it.
Motion. The bar rises; the pill slides to each option on its cue (0.3 s, in-out); on at.result it slides to the winner and the percentages count up (0.7 s, never past). Outro: lift and fade. Why it moves. change: the result is shown, not told.
Mount
Copy every manifest file into your project (plus af-masthead-runtime). Mount with a unique host id, data-composition-id="af-masthead-toggle-poll-16x9", data-composition-src="compositions/af-masthead-toggle-poll-16x9.html", data-duration="5" and data-variable-values. Use the variant whose size matches your project (16x9, 9x16, 4x5, 1x1): each is laid out natively, never scaled. Over live footage set backdrop to "" (the default still is only there so the block reads on its own).
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 (text is fitted to at most 75% of its design size, never cut).
label: {"type":"string","maxLength":24}options (required): {"type":"array","minItems":2,"maxItems":3,"items":{"type":"object","required":["text","pct"],"properties":{"text":{"type":"string","maxLength":12,"minLength":1},"pct":{"type":"number","minimum":0,"maximum":100}}}}cues: {"type":"array","items":{"type":"number","minimum":0},"maxItems":3,"description":"seconds (block time) at which each item lands; time them to the transcript"}side: {"type":"string","enum":["left","right"],"description":"16:9 only: which third of the frame the piece sits in"}at: {"type":"object","description":"optional land times in block seconds: {result}","properties":{"result":{"type":"number","minimum":0}}}
Brand and layout
Brand variables (defaults from the pack's brand.json): creator, handle, channel, tagline, series, url, colourway, accent, monogram, logo, avatar, keyword, ctaFollow, ctaLink, ctaCode. colourway is forest, oxblood or ink; accent (hex) recolours the gold serif voice and falls back if it would not read on the slab (4.5:1). Layout: backdrop, speakerFocus (crop of the speaker), capTop (px; 0 = upper chest with clear air under the chin for a centred 16:9 master), zoneTop / zoneEnd (px; 0 = the free zone below the captions; footage with big headroom sets them to the band above the head).
Example
``json { "label": "• what helps most?", "options": "[{\"text\":\"notebook\",\"pct\":34},{\"text\":\"timer\",\"pct\":51},{\"text\":\"checklist\",\"pct\":15}]", "cues": "[0.6,1.2,1.8]", "side": "left" } ``