components / hazard

hazard.

diagonal caution-stripe tape — a band that reads as a boundary rather than a border, plus a HazardFrame that tapes the edges of any block. hard-stop repeating gradients stay knife-sharp at any pitch, and the optional march animates by exactly one pitch so the loop is seamless.

site notice

work in progress. mind the scaffolding.

installation
bunx @justin06lee/chrome@latest add hazard
props
nametypedefaultdescription
thicknessnumber8band thickness in px.
pitchnumber12stripe pitch in px — one stripe plus one gap.
anglenumber45stripe angle in degrees.
colorstring'rgba(255,255,255,0.22)'
gapColorstring'transparent'colour between the stripes.
orientation'horizontal' | 'vertical''horizontal'Hazard only.
animatebooleanfalsemarch the stripes; frozen under reduced motion.
durationnumber1.2seconds for one full stripe cycle.
edges('top' | 'right' | 'bottom' | 'left')[]['top', 'bottom']HazardFrame only — which sides get taped.
classNamestring-