Skip to content

Text Particle

Pro

Thousands of small particles gather into the letters, push away from the pointer, and spring back after a press.

  • three.js
  • React 19
  • Tailwind CSS 4

Added Nov 14, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Text Particle needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
40
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Wrap the brand or product name of a heading. Keep the rest of the page plain.

The sample also uses Badge and Button. One command adds them with this item:

beta-hero.tsx

TextParticle

<span>
PropTypeDefaultDescription
pausedboolean—The pause of the user or the page (controlled).
defaultPausedboolean—The first pause when paused is not given (uncontrolled). Default false.
onPausedChange—Called when the pause changes.
childrenRequiredstring—The text. Large, heavy display text reads best: each letter is a field of particles.
gapnumber—The space between particles in px. Default: the font size / 28, from 2 to 8px.
particleSizenumber—The particle size in px. Default: 90% of the gap.
introbooleantrueGather the particles into the text the first time it shows. Default true.
loopbooleanfalseKeep the slow drift going. Default false: the drift stops after 5 seconds, so the GPU rests. paused stops a looping drift.
repelbooleantruePush the particles away from the pointer. Default true.
burstbooleantrueA press throws the particles out from the press point, and they spring back. Default true.
plainbooleanfalseShow the plain text, with no WebGL.
onError—Called when three.js does not load or the WebGL setup fails. The plain text stays.
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Wrap the text of a heading. Large, heavy text reads best: each letter is a field of particles.
  • Use gap for the space between particles. The default is the font size / 28, from 2 to 8px; particleSize defaults to 90% of the gap.
  • Use repel={false} for no push from the pointer, and burst={false} for no throw on a press.
  • Use loop to keep the slow drift going, and paused to stop it from a control of the page.
  • Use plain to show the plain text, for example on a page with many effects.
  • For a heading drawn as monospace glyphs, with a terminal look, use Text ASCII.
  • For body text, small text, or a long paragraph, use plain text: a few particles per letter do not read.
TabKeyboard focus on the link or button around the text sweeps the push once along the line; with repel={false} it throws the particles from the center.
Intro
reveal · 1.6s · each particle waits up to 40% of it, then flies into its letter on a cubic ease out
Push
cursorFollow · particles within 1.2 × the font size move away from the pointer and come back; the pointer place follows on a spring
Burst
elastic · 1.6s · a press throws the particles out from the press point, and they settle on a damped spring
Drift
drift · each particle moves a little on a slow sine, which eases out by 5s unless `loop` is true
  1. AddedText Particle.
Open the release