Rotating Gradient

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-rotating-gradient

About this component

On hover, a large conic-gradient layer (alternating dark and light grays) fades in behind the button text and spins continuously via a rotate(360deg) keyframe animation. A subtle dark overlay keeps the white text readable against the gradient. No dependencies.

Triggers

  • Hover
  • Continuous

Techniques

  • Keyframes
  • Conic gradient

Difficulty

Beginner

Accessibility

Reduced motion

Spin animation disabled under prefers-reduced-motion; gradient still fades in as a static background.

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

More buttons

See all
ShockwaveGet code