Gradient Text
Text filled with a gradient that pans through it, or with a single streak of light that sweeps across.
pixikit.com/docs/effects/gradient-text
Customize
Colors3 of 10
Duration6.0s
Variant
Angle100deg
Font size64px
Font family
Font weight600
Props
11| Name | Type | Default | Description |
|---|---|---|---|
text | string | "Ship it today" | The words drawn; children win when given. |
colors | string[] | ["#2563eb", "#7c3aed", "#e8590c"] | The gradient's colours. In the shine variant they make the streak. |
duration | number | 6 | Seconds for one loop. |
variant | "pan" | "shine" | "pan" | A gradient that pans through the text, or one streak of light across text in its own colour. |
angle | number | 100 | The gradient's direction in degrees; 90 runs left to right. |
as | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "strong" | "em" | "div" | "span" | The element the text renders as. |
fontSize | number | 64 | The text size in pixels; it shrinks on narrow screens. |
fontFamily | string | "inherit" | Any CSS font-family; `inherit` keeps the page font. |
fontWeight | number | 600 | The text weight, 100 to 900. |
className | string | None | |
children | ReactNode | None |