Diamond

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-diamond

About this component

A diamond-shaped button using a 45-degree rotated wrapper with counter-rotated text. On hover, the button scales up, the background gradient brightens, and a pulse box-shadow animation radiates outward. No clip-path: pure CSS rotate transform.

Triggers

  • Hover
  • Glow

Techniques

  • Keyframes
  • CSS transition

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Reduced motion

Pulse animation disabled under prefers-reduced-motion.

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

More buttons

See all
Elastic PressGet code
GlitchGet code
Gradient BorderGet code