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| Name | Type | Default | Description |
|---|---|---|---|
text | string | "React Bits" | The words sampled into particles. |
color | string | "currentColor" | The colour of the particles at rest. Follows the surrounding text by default. |
highlightColor | string | "#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. |
gatherDuration | number | 1600 | How long the intro takes to form the text, in milliseconds. |
stagger | number | 420 | The longest delay before a particle starts moving, in milliseconds. |
scatter | number | 180 | How 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. |
clickBurst | boolean | true | Clicking blows the particles away from the click point, then they spring back. Off while trigger is click. |
burstStrength | number | 1 | How hard and how wide a click burst pushes. |
pointerRepel | number | 40 | The strength of the pointer pushback. |
repelRadius | number | 120 | The reach of the pointer, in pixels. |
idleDrift | number | 0.7 | The 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. |
particleSize | number | 2 | The size of each particle, in pixels. |
density | number | 4 | The sampling step, in pixels. Lower values make more particles. |
glow | boolean | true | Adds a soft bloom in the highlight colour around moving particles. |
fontSize | number | string | "clamp(3rem, 12vw, 8rem)" | The text size used for sampling. |
fontWeight | number | string | 800 | The font weight used for sampling. |
fontFamily | string | "inherit" | The font family used for sampling. |
className | string | None | |
style | CSSProperties | None |