Slide Fill

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-slide-fill

About this component

A mid-gray fill slides in from the left to fill the button on hover, then retreats on mouse-leave. Pure CSS transitions, no dependencies.

Triggers

  • Hover
  • Border

Techniques

  • Transform only
  • Gradient

Difficulty

Beginner

Accessibility

Reduced motion

Fill transition removed under prefers-reduced-motion.

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

More buttons

See all
Stagger LettersGet code