Crucible

Voltaic

An electric turbulence border — the card's perimeter is a living arc: an SVG rounded-rect stroke deformed by animated procedural turbulence so it writhes, crackles on seeded reseeds, and periodically misfires and re-strikes, under a soft violet corona. Hover ramps the displacement. Throttled rAF that pauses offscreen; static softly-glowing border under reduced motion.

cssfree

Installation

CLI

npx shadcn@latest add @crucible/voltaic

Props

PropTypeDefaultDescription
childrenReact.ReactNodeCard content.
colorstringelectric violetArc color, any CSS color. The stroke core is auto-mixed toward white.
intensitynumber1Displacement strength — 0 is a calm line, higher is more violent arcing.
speednumber1Temporal churn multiplier for the turbulence.
borderRadiusnumber16Corner radius of the card and its arc, in px.
pausedbooleanfalseFreeze the arc at its current frame.
Also accepts all props of React.ComponentPropsWithoutRef<"div">they pass through to the underlying element.

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