Skip to content
PixiKit

Dust Text

Text made of particles: they gather, rain, spiral or scan into the words, drift gently at rest, get pushed away by the pointer and blown apart by a click, lighting up in a highlight colour while they move.

pixikit.com/docs/effects/dust-text

Customize

Color
Highlight color
Intro
Gather duration1600ms
Stagger420ms
Scatter190px
Trigger
Click burst
Burst strength1.0
Pointer repel42
Repel radius120px
Idle drift0.8px
Shape
Highlight mode
Particle size2.2px
Density4px
Glow
Font weight

Props

23
NameTypeDefaultDescription
textstring"React Bits"The words sampled into particles.
colorstring"currentColor"The colour of the particles at rest. Follows the surrounding text by default.
highlightColorstring"#ff5a36"The colour particles take while they fly in or get pushed around. Also colours the glow and the scan line.
intro"gather" | "rain" | "spiral" | "scan""gather"How the text forms: scattered particles pull together, drop from above, swirl into place, or assemble behind a sweeping line.
gatherDurationnumber1600How long the intro takes to form the text, in milliseconds.
staggernumber420The longest delay before a particle starts moving, in milliseconds.
scatternumber180How far particles begin from their final spots in the gather and spiral intros, in pixels.
trigger"mount" | "hover" | "click""mount"When the intro plays again after the first formation: never, on hover, or on click.
clickBurstbooleantrueClicking blows the particles away from the click point, then they spring back. Off while trigger is click.
burstStrengthnumber1How hard and how wide a click burst pushes.
pointerRepelnumber40The strength of the pointer pushback.
repelRadiusnumber120The reach of the pointer, in pixels.
idleDriftnumber0.7The subtle resting motion after the text has formed, in pixels.
shape"circle" | "square" | "line""circle"How each particle is drawn. Line draws short strokes that stretch along their motion.
highlightMode"motion" | "gradient""motion"Motion lights particles while they are away from their spot; gradient blends the highlight across the text from left to right.
particleSizenumber2The size of each particle, in pixels.
densitynumber4The sampling step, in pixels. Lower values make more particles.
glowbooleantrueAdds a soft bloom in the highlight colour around moving particles.
fontSizenumber | string"clamp(3rem, 12vw, 8rem)"The text size used for sampling.
fontWeightnumber | string800The font weight used for sampling.
fontFamilystring"inherit"The font family used for sampling.
classNamestringNone
styleCSSPropertiesNone

Related