Static Text
Text drawn on a canvas in thin strips that shake apart: harder on hover, in bursts on click or on a timer, with a static intro and a colour split.
pixikit.com/docs/effects/static-text
Customize
Font weight
Color
Color split0.00
Trigger
Enable hover
Base intensity0.20
Hover intensity0.50
Fuzz range30px
Slice size1px
Fps60
Direction
Transition duration0
Intro
Intro duration1400ms
Click effect
Glitch mode
Glitch interval2000ms
Glitch duration200ms
Gradient0 of 10
Letter spacing0px
Props
24| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | The text to draw. |
fontSize | number | string | "clamp(2rem, 8vw, 8rem)" | The font size as any CSS size, or a number in pixels. |
fontWeight | string | number | 900 | The font weight. |
fontFamily | string | "inherit" | The font family; inherit uses the surrounding font. |
color | string | "currentColor" | The text colour; follows the surrounding text by default, theme switches included. |
colorSplit | number | 0 | Split the text into offset colour copies that tear apart with the fuzz, 0 to 1. |
trigger | "hover" | "always" | "click" | "hover" | What raises the fuzz: hover reacts to the pointer, always holds the hover intensity, click fires a burst that eases back. |
enableHover | boolean | true | Raise the fuzz to the hover intensity while the pointer is over the text, when trigger is hover. |
baseIntensity | number | 0.18 | How strong the fuzz is at rest. |
hoverIntensity | number | 0.5 | How strong the fuzz is while hovered, held with always, or hit with each click. |
fuzzRange | number | 30 | The furthest the strips can shift, in pixels. |
sliceSize | number | 1 | The thickness of each shifted strip, in pixels. |
fps | number | 60 | The frame rate cap. |
direction | "horizontal" | "vertical" | "both" | "horizontal" | Which way the strips shift. |
transitionDuration | number | 0 | How many frames the fuzz takes to ease between intensities; 0 switches at once. |
intro | boolean | false | Fade the text in as heavy, coarse static that resolves into clean letters the first time it is seen. |
introDuration | number | 1400 | Milliseconds the intro takes to resolve. |
clickEffect | boolean | false | A short burst of full intensity on click, when trigger is hover or always. |
glitchMode | boolean | false | Add bursts of full intensity at a regular interval. |
glitchInterval | number | 2000 | Milliseconds between glitch bursts. |
glitchDuration | number | 200 | Milliseconds each glitch burst lasts. |
gradient | string[] | null | null | Two or more colours to fill the text with a left to right gradient. |
letterSpacing | number | 0 | Extra space between letters, in pixels. |
className | string | None |