Squish

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/toggle-squish

About this component

The thumb stretches horizontally as it slides, peaking at 1.5× width mid-travel before snapping back to a circle at the destination.

Triggers

  • Click
  • State change

Techniques

  • Keyframes
  • Transform only

Difficulty

Intermediate

Accessibility

Reduced motion

Keyframe animation disabled under prefers-reduced-motion; thumb jumps directly.

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

More toggles

See all
AmberGet code
BokehGet code
CastGet code
ConvoyGet code