Morph Shape

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

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

About this component

On hover, the button morphs from a pill shape to a circle: the width collapses and border-radius transitions to 50%. The text label fades out and a decorative symbol fades in with a spring-bounce entrance. Both transitions are CSS-only.

Triggers

  • Hover
  • State change

Techniques

  • CSS transition
  • border-radius

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Reduced motion

Shape transition disabled under prefers-reduced-motion; button remains functional.

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

More buttons

See all
Neon PulseGet code
Orbit ParticlesGet code