A swarm of monospace characters that assembles into a word. Thousands of glyphs fly in from the edges, lock onto a staggered grid inside bold lettering and shimmer there while a soft light sweeps across; any glyph that is knocked loose scrambles through random characters until it settles back. The pointer scatters the swarm with a gentle swirl, clicks blast it apart, and a loose cloud of dim glyphs drifts around the word. Cached glyph atlas, adaptive particle count, paused off screen and a fully formed still frame under reduced motion.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { GlyphSwarmText } from "@/components/hyperblur-pro/glyph-swarm-text"
<GlyphSwarmText style={{ height: 520 }}>
<div style={{ display: "grid", placeItems: "center", height: "100%", color: "#fff" }}>Your hero</div>
</GlyphSwarmText>| Prop | Type | Default | Description |
|---|---|---|---|
| palette | string[] | ["#5a4bc4", "#9d8cff", "#e4dcff", "#ffd9a8", "#ffffff"] | Color stops from the calm, settled glyphs to the bright, disturbed ones that are flying around. |
| charset | string | "#%@&$01xX+*" | Characters the swarm is made of. Whitespace is ignored. |
| density | number | 1 | Multiplier for the number of glyphs forming the word. Higher values give finer lettering. The count is capped for performance. |
| speed | number | 1 | Speed multiplier for the motion and the periodic scatter. 0 freezes the swarm. |
| interactive | boolean | true | The pointer scatters the glyphs near it and clicks or taps blast the swarm apart. The word reforms on its own. |
| text | string | "SWARM" | The word to form. Use a line break to set up to four lines. The type is scaled to fit the field. |
| background | string | "#07060f" | Color behind the glyphs. |
| children | React.ReactNode | - | Content rendered on top of the field. |
| className | string | "" | Classes for the root element. Give it a size. |
| style | React.CSSProperties | - | Inline styles for the root element. |
Source code is included in Standard and above