GlowText
Animated shine overlay for text and compact UI surfaces.
GlowText
TxGlowText adds a sweep highlight over text, badges, image previews, and compact surfaces. Use mode="text-clip" when the shine should be clipped to glyphs; keep the default adaptive mode for container-level shimmer.
adaptiveis enabled by default (container-level shimmer, good for images/cards); for text usemode="text-clip"so shimmer clips to glyphs.
text-clipcurrently sweeps right β left (aligned with the ShinyText reference).
Basic Usage
GlowText
Interactive preview paused.
Applied to Images/Cards
GlowText on image
Interactive preview paused.
More Examples
GlowText in UI
Interactive preview paused.
API
Props
| Prop | Type | Default | Description |
|---|---|---|---|
tag | string | span | Root element used to wrap the default slot. |
active | boolean | true | Disables the shine overlay when set to false. |
repeat | boolean | true | Runs the sweep once when set to false. |
durationMs | number | 1400 | Sweep animation duration in milliseconds. |
delayMs | number | 0 | Delay before the sweep animation starts. |
angle | number | 20 | Gradient angle in degrees. |
bandSize | number | 38 | Highlight band width as a percentage of the gradient. |
color | string | rgba(255, 255, 255, 0.9) | Highlight color used in the sweep gradient. |
opacity | number | 0.75 | Overlay opacity during the visible part of the sweep. |
blendMode | string | - | Optional CSS mix-blend-mode override for the shine overlay. |
mode | 'classic' | 'adaptive' | 'text-clip' | adaptive | adaptive uses a container overlay; text-clip mirrors slot text and clips the shine to glyphs. |
backdrop | string | - | Optional CSS backdrop filter override for the shine overlay. |
radius | number | 10 | Root border radius in pixels. |