Sold Out Sweep
A product card selling out in front of you: a diagonal band sweeps across, the image drains to grey, and the button becomes a notify.
Clay mug
$26
sold out · notify instead
Build a product card that sells out while you are looking at it. Structure: an image area, a diagonal SOLD OUT band, a name, a price, and a call to action. The sequence: 1. The band sweeps in - scaleX from 0 to 1 with a left transform origin, over 0.4s on a decisive ease, rotated about -8 degrees. A band that is simply present reads as a badge that was always there; a sweep reads as something that just happened. The tilt matters: perfectly horizontal reads as UI chrome, tilted reads as a stamp across the picture. 2. The image drains to greyscale and drops to about 0.55 opacity, starting 250ms AFTER the sweep. The delay makes the drain a consequence rather than a coincidence. 3. The button changes job, not just state: "Add to cart" (filled) becomes "Notify me" (outlined, with a bell icon). A greyed-out disabled button is a dead end at the exact moment an email address was available for the asking. Two things must NOT happen. Do not remove the card - that throws away the demand signal and the buyer's memory of the item. Do not strike through the price - struck-through says worthless, and this item is merely unavailable. Accessibility: a stock line below the card is aria-live="polite" ("in stock" -> "sold out, notify instead"); the band is aria-hidden. Under prefers-reduced-motion, render the sold-out state with no sweep and no drain. Colors as tokens: paper card, ink for the band, one accent in the product image gradient. Build the component, not this demo of it. - Ambient motion that IS the component may loop: a drifting background, a marquee, a spinner while something is genuinely loading. - Do not add any timer, interval, loop or script that performs a person's action by itself. No auto-hover, no auto-click, no cycling through states, no pretend submitting, no replaying the interaction on a schedule. - Every state that answers a person waits for a real event from that person. - Placeholder copy and sample content are welcome. Simulated behaviour is not.