Morph Text

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-morph-text

About this component

On hover the label melts into the next word. Both words blur through each other while letter-spacing shifts, and an SVG alpha-threshold filter turns the overlap into liquid letterforms instead of a crossfade. Pure CSS, no script.

Triggers

  • Hover
  • Focus
  • Morph

Techniques

  • SVG filter
  • Filter
  • CSS transition
  • Text animation

Difficulty

Beginner

Accessibility

Keyboard and screen readers

The button's aria-label is the real label; both visual words are aria-hidden.

Reduced motion

The threshold filter is dropped and the words swap without a transition.

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

More buttons

See all
Particle TextGet code
Pull CordGet code
ShatterGet code
Split-FlapGet code