crucıble

Fracture

Text glitches with classic red and cyan channel ghosts sheared apart by jump-cut clip-path slices, sparking at each shear line. Hover, continuous, or timed-interval triggers; freezes static under reduced motion.

cssfree

Installation

CLI

npx shadcn@latest add @crucible/fracture

Props

PropTypeDefaultDescription
childrenstringThe text to render and glitch.
as"span" | "div" | "p" | "h1" | "h2" | "h3""span"Element tag rendered.
trigger"always" | "hover" | "interval""hover"What fires the glitch. "always" loops continuously (still bursty, not nonstop noise — cadence sets the gap between bursts); "hover" bursts rapidly while the pointer is over the text; "interval" bursts on a timer even without interaction.
intensitynumber0.6Channel-split offset and slice strength, 0-1.
cadencenumber3.2Seconds between bursts for "always"/"interval" triggers.
burstDurationnumber0.5Seconds a single burst lasts.
colorsFractureColorsGhost-layer, base, and spark colors.
pausedbooleanFreeze the animation.
Also accepts all props of Omit<React.ComponentPropsWithoutRef<"span">, "children">they pass through to the underlying element.

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