Shear

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-shear

About this component

A sunset button of magenta into orange, cut into five horizontal bands. On hover the bands slide apart left and right in sequence and snap back into one piece; a press holds them apart.

Triggers

  • Hover
  • Click
  • Delay stagger
  • Gradient

Techniques

  • clip-path
  • Keyframes
  • Transition delay stagger
  • CSS variables

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native button named by aria-label ("Play trailer"); the five band copies are aria-hidden so the label is read once.

Reduced motion

The bands stay together.

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

More buttons

See all
SpringGet code
SproutGet code
StainedGet code
StickerGet code