Flip the Switch (signature device). Native 1920×1080, 7s at 30fps.
Signature device. One idea switching from off to on: a big switch holds the "off" version on the charcoal ground; its knob slides across and the accent ground floods out of the knob to fill the frame, revealing the switch in its "on" state, then a caption lands. Starts on charcoal and ends on the accent ground, so the next scene should be an accent-ground scene.
Motion. Label tracking collapses; the switch pops in (small overshoot); after a reading hold the knob slides (ease in-out) and the track fills; a circle of the accent ground grows out of the knob (ease in-out) until it covers the frame; rays burst round the knob once; caption rises. Why it moves. change + character: the viewer watches the idea flip state, and the whole world changing colour makes the switch feel like a decision.
Mount
Copy every manifest file into your project (plus af-toggle-runtime). Mount with a unique host id, data-composition-id="af-toggle-flip-switch-16x9", data-composition-src="compositions/af-toggle-flip-switch-16x9.html", data-duration="7" 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":28}off (required): {"type":"string","minLength":1,"maxLength":20}on (required): {"type":"string","minLength":1,"maxLength":20}caption: {"type":"string","minLength":1,"maxLength":60}
off and on share one switch width (the longer label sets it).- The scene ends on the accent ground: follow it with an accent-ground scene (no transition needed) or a ground swap.
Style: colourway (lime, cobalt, coral), accent (optional hex), footer, ground: dark only, exit (slide or cut).
Timing
7s. Everything has landed by 4.2s (60%), then the scene holds for reading (the grid and the faint rings slow to a residual drift, text stays still) and slides out to the left in a motion blur over the last 0.5 s, leaving the empty ground.
Example
``json { "label": "Same video", "off": "Boring intro", "on": "Scroll-stopper", "caption": "Change one line. Keep the rest." } ``