Stained
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-stainedAbout this component
Five panes of ruby, amber, emerald and cobalt glass held in black lead, dim at rest with a slow light passing behind. Hover lights the window so colour spills out round it; a press dulls it.
Triggers
- Hover
- Click
- Glow
- Ambient
Techniques
- SVG
- Filter
- mix-blend-mode
- Keyframes
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A native button named by its label; the glass, the spill and the light band are aria-hidden and :focus-visible draws an outline.
Reduced motion
The passing light stops.
Use it in anything you build, commercial and client work included. Licence