Progress to Target: The Battery. Native 1920×1080, 6.5s at 30fps.
Progress towards a target as a phone battery charging: the fill grows to value / target (never past it) while the reading counts up.
Motion. Battery rises; the fill grows and the numbers count on one curve (ease-out, honest); the label builds. Why it moves. change: charging is progress, and the empty part is what is left.
Mount
Copy every manifest file into your project (plus af-small-hours-runtime). Mount with a unique host id, data-composition-id="af-small-hours-battery-target-16x9", data-composition-src="compositions/af-small-hours-battery-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: {"type":"string","minLength":1,"maxLength":40}value (required): {"type":"number","minimum":0,"maximum":1000000}target (required): {"type":"number","minimum":0.0001,"maximum":1000000}unit: {"type":"string","minLength":1,"maxLength":6}decimals: {"type":"integer","minimum":0,"maximum":2}label: {"type":"string","minLength":1,"maxLength":60}
value may not exceed target.
Style: colourway (midnight, ember, moss), accent (optional hex for the key colour), stampLabel / stampTime (the clock stamp), footer, enter / exit (dark or cut).
Timing
6.5s. Everything has landed by 3.9s (60%), then the scene holds for reading (dust slows to a residual drift, the moonlight breathes, text stays still). It opens out of black (lights on) and closes to black over the last 0.5 s (lights out).
Example
``json { "title": "Your sleep *tank*", "value": 6, "target": 8, "unit": "h", "decimals": 0, "label": "two hours short *every night*" } ``