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| Name | Type | Default | Description |
|---|---|---|---|
text | string | "Spotlight" | The words drawn in outline. |
radius | number | 160 | How far the spotlight reaches from the pointer, in pixels. |
strokeColor | string | "var(--muted-foreground)" | The outline of the letters. |
fillColor | string | "currentColor" | The ink the spotlight reveals. `currentColor` follows the text colour. |
fontSize | number | string | 160 | The letters' size: a number in pixels or any CSS length. It shrinks to fit a narrower container. |
fontFamily | string | "inherit" | Any CSS font-family; `inherit` keeps the page font. |
fontWeight | number | 700 | The letters' weight, 100 to 900. |
riseOnScroll | boolean | false | The letters rise into place as the text scrolls into view. |
className | string | None |