Tank
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-tankAbout this component
A clear glass pill a third full of aqua liquid that sloshes slowly. On hover the liquid rises with a rolling wave until the button is full and the label turns white; a press dips the level.
Triggers
- Hover
- Fill
- Loop
- Ambient
Techniques
- CSS variables
- border-radius
- Keyframes
- CSS transition
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A native button named by its label; the waves are aria-hidden. Keyboard focus fills it like hover and shows an outline.
Reduced motion
The waves stop and the level changes at once.
Use it in anything you build, commercial and client work included. Licence