Particle Text
Customize
Props
| Property | Type | Default | Description |
|---|---|---|---|
text | string | "creative." | Text rasterized to sample particle positions from. |
colors | string[] | ["#40ffaa","#40aaff","#ff40aa","#aa40ff"] | Palette randomly assigned to each particle. |
particleSize | number | 2 | Diameter of each particle in pixels. |
particleGap | number | 2 | Spacing between sampled particle points in pixels. |
fontSize | number | 200 | Base font size used to rasterize the text. |
autoFit | boolean | true | Automatically shrinks font size to fit the container. |
mouseControls | object | { enabled: true, radius: 150, strength: 5 } | Pointer repulsion settings: enabled, radius (px), strength (force multiplier). |
friction | number | 0.75 | Velocity damping applied each frame, 0-1. |
ease | number | 0.05 | Spring pull strength back toward the sampled base position. |
shape | string | "ascii" | Particle render shape: "square", "circle", or "ascii". |
asciiChars | string | "mew" | Character pool each particle randomly picks from when shape is "ascii". |
backgroundColor | string | "transparent" | Canvas background color, or "transparent". |
className | string | "" | Extra classes applied to the root wrapper. |
textstringText rasterized to sample particle positions from.
"creative."colorsstring[]Palette randomly assigned to each particle.
["#40ffaa","#40aaff","#ff40aa","#aa40ff"]particleSizenumberDiameter of each particle in pixels.
2particleGapnumberSpacing between sampled particle points in pixels.
2fontSizenumberBase font size used to rasterize the text.
200autoFitbooleanAutomatically shrinks font size to fit the container.
truemouseControlsobjectPointer repulsion settings: enabled, radius (px), strength (force multiplier).
{ enabled: true, radius: 150, strength: 5 }frictionnumberVelocity damping applied each frame, 0-1.
0.75easenumberSpring pull strength back toward the sampled base position.
0.05shapestringParticle render shape: "square", "circle", or "ascii".
"ascii"asciiCharsstringCharacter pool each particle randomly picks from when shape is "ascii".
"mew"backgroundColorstringCanvas background color, or "transparent".
"transparent"classNamestringExtra classes applied to the root wrapper.
""Crafted withbyMohammad Tasin
ReactBytesGet verified guest posts across 100+ sites.
Instant placements, fixed pricing
100+ Sites · 12 Countries
Fixed Pricing · Instant TAT