Trampoline

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-trampoline

About this component

The label sits on a trampoline mat: press and the mat dips and the springs stretch, then the word is thrown up in a tumble and lands with a second smaller bounce. Hover sags the mat under the pointer.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Click
  • Spring
  • Hover

Techniques3

  • Keyframes
  • Transform only
  • Conic gradient

Accessibility

Keyboard and screen readers

A native button named "Jump"; the trampoline is aria-hidden.

Reduced motion

Nothing bounces.

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

More buttons

See all
UnveilGet code
VelvetGet code
Walkie-talkieGet code
ChompGet code