Spring

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-spring

About this component

An emerald satin pill with soft bands of sheen drifting across it. Pressing flattens and widens it like a cushion; on release it springs back past its shape and settles.

Triggers

  • Click
  • Hover
  • Spring
  • Ambient

Techniques

  • Transform only
  • CSS transition
  • Keyframes
  • Gradient

Difficulty

Beginner

Accessibility

Keyboard and screen readers

A native button named by its label; :focus-visible draws an outline.

Reduced motion

The sheen stops and the press changes shape without the spring.

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

More buttons

See all
SproutGet code
StainedGet code
StickerGet code
TallyGet code