crucıble

Galvanize

An animated gradient border cycling silver to blue to violet, like electroplating in progress. Hover accelerates the rotation and thickens the ring by a pixel. Pure CSS via a masked conic gradient.

cssfree

Installation

CLI

npx shadcn@latest add @crucible/galvanize

Props

PropTypeDefaultDescription
colors[string, string, string]silver, blue, violetThree colors the border rotates through. Any CSS colors.
radiusnumber12Border radius in px.
thicknessnumber1.5Ring thickness in px at rest — thickens by 1px on hover.
durationnumber5Seconds for one full rotation at rest (hover runs ~2.9x faster).
pausedbooleanfalseFreeze the animation, holding the current frame.
Also accepts all props of React.ComponentPropsWithoutRef<"button"> — they pass through to the underlying element.

Honors prefers-reduced-motion with a designed static fallback, and passes className through.