Settle

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-settle

About this component

A pay button filled with slowly shifting green, teal and lime light. Pressing it draws the pill in to a circle, a white tick writes itself with a small burst of marks round it, and then it opens back out to the label.

Triggers

  • Click
  • State change
  • Morph
  • Gradient

Techniques

  • CSS transition
  • stroke-dashoffset
  • Keyframes
  • Radial gradient

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native button whose aria-label changes from "Pay $24" to "Paid" while the tick shows; the drawn parts are aria-hidden. Presses during the morph are ignored.

Reduced motion

The states swap without animation.

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

More buttons

See all
ShearGet code
SpringGet code
SproutGet code
StainedGet code