Before / After: The Dot Crosses Over. Native 1920×1080, 6.5s at 30fps.
Old state vs new state: the dim "before" panel lands, the white dot arcs across and the bright "after" panel lands with the orb on its corner. Side by side on 16:9, stacked on the other sizes.
Motion. Before panel rises; the dot arcs across (ease in-out); after panel rises and the orb pops onto it. Why it moves. change: the dot carries you from the old way to the new one.
Mount
Copy every manifest file into your project (plus af-afterglow-runtime). Mount with a unique host id, data-composition-id="af-afterglow-before-after-16x9", data-composition-src="compositions/af-afterglow-before-after-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":44}before (required): {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":14},"text":{"type":"string","minLength":1,"maxLength":80}},"required":["text"]}after (required): {"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":14},"text":{"type":"string","minLength":1,"maxLength":80}},"required":["text"]}
Style: colourway (rose, ultraviolet, ember), accent (optional hex), footer, enter / exit (glow or cut).
Timing
6.5s. Everything has landed by 3.9s (60%), then the scene holds for reading (bubbles slow to a residual drift, the glow breathes, text stays still) and glows out over the last 0.55 s (elements lift away, the orb fills the frame).
Example
``json { "title": "One month apart", "before": "{\"label\":\"Before\",\"text\":\"Waiting for a free weekend to start properly\"}", "after": "{\"label\":\"After\",\"text\":\"Ten minutes every morning, already moving\"}" } ``