Ranked Options: The Mattress Stack. Native 1920×1080, 7s at 30fps.
Two to five options ranked. Mattresses drop onto the stack from the lowest rank up and squash as they land; number one lands last, on top, glowing warm.
Motion. Each mattress falls (ease-in) and squashes on landing (mass, settles back); 0.5 s apart from the bottom up. Why it moves. change + character: the best option literally ends up on top.
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-ranked-stack-16x9", data-composition-src="compositions/af-small-hours-ranked-stack-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).
title: {"type":"string","minLength":1,"maxLength":40}items (required): {"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":20},"note":{"type":"string","minLength":1,"maxLength":22}},"required":["label"]}}
- items[0] is rank 1 (top of the stack).
Style: colourway (midnight, ember, moss), accent (optional hex for the key colour), stampLabel / stampTime (the clock stamp), footer, enter / exit (dark or cut).
Timing
7s. Everything has landed by 4.2s (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": "Best things to do *at 3 AM*", "items": "[{\"label\":\"Breathe slowly\",\"note\":\"calms you fast\"},{\"label\":\"Read on paper\",\"note\":\"dim lamp only\"},{\"label\":\"Lie still\",\"note\":\"rest still counts\"},{\"label\":\"Check your phone\",\"note\":\"worst choice\"}]" } ``