Tank

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-tank

About 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

More buttons

See all
TerrazzoGet code
TorchGet code
TraceGet code
TurnGet code