Skip to content
WunderUI
All effectsKPI

Curtain

A coloured bar wipes across and reveals the text behind it, for headline numbers and titles.

Pure CSSKPIPro

Meant for

KPITimeline entryCard title

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.

Revenue this quarter$48,2108.1%vs last quarter

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.