ns-ui / loud

Text Prism Split

A frosted prism strip rides the cursor across a headline, magnifying the text beneath it and tearing it into velocity-driven RGB channel slices that snap back with spring overshoot.

Use when a frosted prism strip rides the cursor across a headline, magnifying it and tearing it into velocity-driven RGB channel slices that snap back with overshoot; use for a glitchy, chromatic-aberration headline moment, not a soft/organic one; pick text-ligature-melt instead when the distortion should be soft and gooey rather than chromatic, text-variable-weight when the headline should respond in weight alone with no colour fringing, or text-decrypt when the effect should fire once on mount rather than ride the cursor.

Install

npx shadcn add https://design.helpmarq.com/r/text-prism-split.json
  • cursor
  • text
  • rgb-split
  • chromatic-aberration
  • glass
  • spring
  • headline

ns-ui / text-prism-split

drag the prism

Props

PropTypeDefaultDescription
text?string"REFRACTION"
stripWidth?number120prism strip width in px
stiffness?number300spring stiffness (N/m-ish, px units)
damping?number24spring damping coefficient
mass?number1spring mass
dispersionGain?number0.018px of red-channel offset per px/s of strip velocity
maxDispersion?number14channel offset clamp in px
magnify?number1.06scale of the refracted clones inside the strip
className?string