Skip to content
PixiKit

Spotlight Text

Outlined text that fills with ink under a spotlight that follows the pointer.

pixikit.com/docs/effects/spotlight-text

Customize

Radius160px
Stroke color
Fill color
Font size160px
Font family
Font weight700
Rise on scroll

Props

9
NameTypeDefaultDescription
textstring"Spotlight"The words drawn in outline.
radiusnumber160How far the spotlight reaches from the pointer, in pixels.
strokeColorstring"var(--muted-foreground)"The outline of the letters.
fillColorstring"currentColor"The ink the spotlight reveals. `currentColor` follows the text colour.
fontSizenumber | string160The letters' size: a number in pixels or any CSS length. It shrinks to fit a narrower container.
fontFamilystring"inherit"Any CSS font-family; `inherit` keeps the page font.
fontWeightnumber700The letters' weight, 100 to 900.
riseOnScrollbooleanfalseThe letters rise into place as the text scrolls into view.
classNamestringNone

Related