Skip to content
PixiKit

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
NameTypeDefaultDescription
textstring"Ship it today"The words drawn; children win when given.
colorsstring[]["#2563eb", "#7c3aed", "#e8590c"]The gradient's colours. In the shine variant they make the streak.
durationnumber6Seconds 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.
anglenumber100The 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.
fontSizenumber64The text size in pixels; it shrinks on narrow screens.
fontFamilystring"inherit"Any CSS font-family; `inherit` keeps the page font.
fontWeightnumber600The text weight, 100 to 900.
classNamestringNone
childrenReactNodeNone

Related