Skip to content
PixiKit

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
NameTypeDefaultDescription
childrenReactNodeNoneThe text to draw.
fontSizenumber | string"clamp(2rem, 8vw, 8rem)"The font size as any CSS size, or a number in pixels.
fontWeightstring | number900The font weight.
fontFamilystring"inherit"The font family; inherit uses the surrounding font.
colorstring"currentColor"The text colour; follows the surrounding text by default, theme switches included.
colorSplitnumber0Split 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.
enableHoverbooleantrueRaise the fuzz to the hover intensity while the pointer is over the text, when trigger is hover.
baseIntensitynumber0.18How strong the fuzz is at rest.
hoverIntensitynumber0.5How strong the fuzz is while hovered, held with always, or hit with each click.
fuzzRangenumber30The furthest the strips can shift, in pixels.
sliceSizenumber1The thickness of each shifted strip, in pixels.
fpsnumber60The frame rate cap.
direction"horizontal" | "vertical" | "both""horizontal"Which way the strips shift.
transitionDurationnumber0How many frames the fuzz takes to ease between intensities; 0 switches at once.
introbooleanfalseFade the text in as heavy, coarse static that resolves into clean letters the first time it is seen.
introDurationnumber1400Milliseconds the intro takes to resolve.
clickEffectbooleanfalseA short burst of full intensity on click, when trigger is hover or always.
glitchModebooleanfalseAdd bursts of full intensity at a regular interval.
glitchIntervalnumber2000Milliseconds between glitch bursts.
glitchDurationnumber200Milliseconds each glitch burst lasts.
gradientstring[] | nullnullTwo or more colours to fill the text with a left to right gradient.
letterSpacingnumber0Extra space between letters, in pixels.
classNamestringNone

More text effects in Pro

View all

Related