Progress to Target: The Long Switch. Native 1920×1080, 6.5s at 30fps.
Progress toward a goal. A long switch track fills with the accent to the value, the knob rides the fill edge with the counter above it, the goal sits at the end and the percent lands.
Motion. Track fades up; fill and counter grow together (ease-out, never past the value); knob rides the edge; pop circle at the knob as it lands; percent and caption rise. Why it moves. change: the fill is the progress; the switch motif says "nearly on".
Mount
Copy every manifest file into your project (plus af-toggle-runtime). Mount with a unique host id, data-composition-id="af-toggle-progress-target-16x9", data-composition-src="compositions/af-toggle-progress-target-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).
title (required): {"type":"string","minLength":1,"maxLength":40}value (required): {"type":"number","minimum":0,"maximum":1000000000}target (required): {"type":"number","minimum":0.000001,"maximum":1000000000}prefix: {"type":"string","minLength":1,"maxLength":3}unit: {"type":"string","minLength":1,"maxLength":6}decimals: {"type":"integer","minimum":0,"maximum":2}label: {"type":"string","minLength":1,"maxLength":14}caption: {"type":"string","minLength":1,"maxLength":70}
value must not exceed target.
Style: colourway (lime, cobalt, coral), accent (optional hex), footer, ground: dark only, exit (slide or cut).
Timing
6.5s. Everything has landed by 3.9s (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 { "title": "Road to 10k followers", "value": 7400, "target": 10000, "decimals": 0, "label": "Goal", "caption": "Three hooks a week got us here." } ``