Curtain
A coloured bar wipes across and reveals the text behind it, for headline numbers and titles.
Meant for
Usage
On a KPI
One bar wipes in from the left, flips its transform-origin, and wipes out to the right, uncovering the figure on the way. The origin flip at the halfway mark is the whole trick. Keep the element w-fit — stretched across the card, the bar would cover the card instead of the figure. It plays a single time on arrival by default; data-wm="loop" keeps it going.
The class is wm wm-curtain — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.