Rub Off
A cover layer with a radial hole cut into its mask. Moving the hole is the whole interaction.
Usage
50% OFF
Meant for
Examples
On a Card
A cover layer with a radial hole cut into its mask — the scratch card. Move the pointer over the foil to rub it off where you are; without a pointer the hole sweeps on its own. The gradient underneath is deliberately deep: white text on it holds 6.8:1.
The class is wm wm-rub-off — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.