pH Scale. Native 1920×1080, 5s at 30fps. A cutaway on the milk ground.
A rounded gradient scale from acid to alkaline (0-14) swipes on, a cherry marker drops onto the product's pH and its label lands above it.
Motion. The scale swipes on (0.7 s); the marker drops (ease-in); the label fades up. Why it moves. clarity: why a cleanser stings, in one picture.
Mount
Copy every manifest file into your project (plus af-swatch-runtime). Mount with a unique host id, data-composition-id="af-swatch-ph-scale-16x9", data-composition-src="compositions/af-swatch-ph-scale-16x9.html", data-duration and data-variable-values. A longer data-duration than 5s extends the hold (the exit moves to the end of the mount). Use the variant whose size matches your project: 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).
chip: {"type":"string","minLength":0,"maxLength":20}title (required): {"type":"string","minLength":1,"maxLength":32}ph (required): {"type":"string","minLength":1,"maxLength":4}label: {"type":"string","minLength":0,"maxLength":18}
ph is 0-14; healthy skin sits around 5.5.
Brand and layout
Brand variables (defaults from brand.json): colourway, accent, creator, handle, channel, tagline, monogram, ctaFollow, ctaLink, ctaCode. Layout: capTop (caption top, px), zoneTop (card zone top, px), exit (wipe or hold).
Example
``json { "chip": "", "title": "Why *bar soap* stings", "ph": "9.5", "label": "Bar soap" } ``