Tide

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-tide

About this component

Liquid rises inside the button on hover with two SVG wave layers rolling across its surface, and sloshes against the walls when the cursor moves fast: horizontal pointer speed tips the water on a spring. The label splits colour at the waterline through mix-blend-mode.

Triggers

  • Hover
  • Fill
  • Spring
  • Loop

Techniques

  • SVG
  • Keyframes
  • mix-blend-mode
  • Spring
  • requestAnimationFrame

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

Keyboard focus raises the water like hover.

Reduced motion

The waves stop, the fill changes without a transition and the slosh script never runs.

Use it in anything you build, commercial and client work included. Licence

More buttons

See all
Tile FlipGet code
Border BeamGet code
Burst RingGet code