Unveil
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-unveilAbout this component
A button under a dust sheet with its label showing faintly through the cloth: hover tugs the sheet, a press whips it off to reveal the polished button, which catches the light, and the next press drops the sheet back.
- Dependencies
- None
- Difficulty
- Intermediate
- Reduced motion
- Respected
- Theme
- Light and dark
- Follows page color-scheme
Triggers3
- Click
- Hover
- State change
Techniques4
- Radial gradient
- Keyframes
- Gradient
- CSS transition
Accessibility
Keyboard and screen readers
A native button with aria-pressed and a label that says whether the launch is unveiled.
Reduced motion
The sheet appears and disappears without the whip.
Use it in anything you build, commercial and client work included. Licence