← All components
Typography / effect

Shiny Text

A soft metallic highlight glides across live text.

Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • The included Demo.tsx and shared/demo.css recreate the complete preview. Import the main component to compose your own design.
  • No continuous work while idle, offscreen, or paused. Reduced motion renders a settled view.
  • Five contexts include a local shortlist button, headline and inline layouts, plus two original organic radial highlights. Organic duration/highlightColor map exactly from speed/shineColor; linear-only controls are omitted there.
  • All context actions survive Pause/Replay. Text remains selectable and readable under reduced motion; OrganicShimmer retains a normal foreground independently of its decorative layer.
React 19CSS

React Bits · MIT with Commons Clause. Used with explicit project permission; see bundled notice.

Props

PropTypeDefaultDescription
text (required)string— (required)Text
speednumber seconds/cycle2Cycle duration
colorstring#b5b5b5Text color
shineColorstring#ffffffHighlight
spreadnumber120Gradient angle
yoyobooleanfalseReverse each pass
pauseOnHoverbooleanfalsePause on hover
directionleft|rightleftDirection
delaynumber seconds0Rest between passes
disabledbooleanfalseStop the shimmer while keeping text readable.
pausedbooleanfalseSuspend decoration without changing caller state, retained text, local input or results.
replayTokennumber0Restart decoration while retaining caller state and local work in the new contexts. Legacy Thought/Lattice Demo explicitly restarts its synthetic interaction.
classNamestringAdditional classes for the outer element.
highlightColorstring#ffffffOrganicShimmer: radial light color, mapped from the Highlight control.
durationnumber seconds3OrganicShimmer: curved radial cycle, mapped from Cycle duration;0 suspends continuous frames.
styleCSSPropertiesundefinedOrganicShimmer: optional wrapper styles; readable foreground is always retained.