Geode
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-geodeAbout this component
A rough geode with a crack across it and violet light leaking out. Hover and the stone eases apart along the crack; a press splits it open, the halves lifting away to show druzy amethyst glittering round the label, before it closes again with a puff of dust.
Triggers
- Hover
- Click
- Glow
- State change
Techniques
- SVG
- SVG filter
- CSS transition
- Keyframes
Difficulty
Advanced
Accessibility
Keyboard and screen readers
A native <button> named by its label, Discover, which stays in place and readable over the stone and the open crystal; all the art is aria-hidden. Keyboard focus eases the crack like hover and shows an outline.
Reduced motion
The halves open and shut without moving between, the sparkles hold still and there is no dust.
Use it in anything you build, commercial and client work included. Licence