crucıble

Gild

A metallic light sweep crosses glyphs on a deliberate slow interval — a white core edged in refined champagne gold over a brushed-bronze base. Pure CSS, driven by an animated @property.

cssfree

Installation

CLI

npx shadcn@latest add @crucible/gild

Props

PropTypeDefaultDescription
as"span" | "div" | "p" | "h1" | "h2" | "h3""span"Element tag rendered.
colorsGildColorsGradient stops for the base tone and sweep core/edges.
intervalnumber4.5Seconds between sweeps.
anglenumber100Sweep angle in degrees.
hoverOnlybooleanfalseOnly sweep while hovered, instead of continuously on an interval.
pausedbooleanFreeze the sweep at its current frame.
Also accepts all props of React.ComponentPropsWithoutRef<"span">they pass through to the underlying element.

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