Sheen Text
A band of light sweeps across text, on a loop, on hover or when it scrolls into view.
pixikit.com/docs/effects/sheen-text
Customize
Color
Shine color
Speed2.0s
Delay0.0s
Angle120deg
Shine width40%
Softness0.80
Bands1
Glow0.00
Direction
Easing
Trigger
Yoyo
Follow pointer
Pause on hover
Disabled
Props
20| Name | Type | Default | Description |
|---|---|---|---|
text | string | None | The text to shine; children work too. |
children | ReactNode | None | |
color | string | "var(--muted-foreground)" | The base colour of the text. |
shineColor | string | "var(--foreground)" | The colour of the light passing over it. |
speed | number | 2 | Seconds for one sweep across the text. |
delay | number | 0 | Seconds of rest between sweeps. |
angle | number | 120 | The tilt of the band of light, in degrees. 90 is upright, higher leans it forward. |
shineWidth | number | 40 | How wide the band of light is, as a percentage of the text. |
softness | number | 0.8 | How gently the band fades at its edges, 0 for a crisp glint to 1 for a soft sheen. |
bands | number | 1 | How many bands of light follow each other. |
glow | number | 0 | A soft bloom of light that travels with the band, 0 to 1. |
direction | "left" | "right" | "left" | Which way the light travels. |
easing | "smooth" | "linear" | "snappy" | "smooth" | The feel of each sweep: smooth glides in and out, linear keeps an even pace, snappy flashes across and waits. |
trigger | "loop" | "hover" | "view" | "loop" | When it shines: on a loop, once each time the pointer enters, or once when scrolled into view. |
yoyo | boolean | false | Sweep back and forth instead of always starting from the same side. |
followPointer | boolean | false | While hovered, the light glides after the pointer, then slides off when it leaves. |
pauseOnHover | boolean | false | Freeze the sweep while the pointer is over the text. |
disabled | boolean | false | Show plain text with no shine. |
className | string | None | |
style | CSSProperties | None |