Swarming Dots

Every Dot Knows Its Place

A React component that turns any text in the beautifully designed Geist Pixel Circle font into a swarm of dots that fly into place as you type, published so anyone can drop it into their project with a single command.

The word SWARM made of dots, with more dots flying in
Domain
UI Components
Stack
React, Vite, shadcn registry

01Text that just appears is boring

Most text on the web just shows up - it fades in if you're lucky. I wanted words that arrive, the way a crowd fills a stadium, and nothing out there did that without a heavy animation library or a pre-rendered video.

Three static grey lines of placeholder text and one orange dot

02How this works (it's one line)

You run one npx command and get a single file, dot-swarm-text.tsx, that needs nothing but React. Pass it any text and the dots swarm into the letters in Geist Pixel Circle. Type a new letter mid-word and only that letter swarms in - the rest of the sentence stays put.

A terminal, a single file, and a dot word whose last letter is still swarming in orange

03Eighty icons went into a drawer

It started as an icon gallery: eighty everyday objects - an airplane, an anchor, an axe - each drawn as a dot-swarm, with the dots flying between shapes as you click through them. This concept grew in my concept after working on the intro animation for idlejet.com. Then the text swarm turned out to be the part people actually wanted. So I cut the site down to just that, and shipped it as a component instead of a showcase.

A grid of faded dot icons next to one word made of dots

04Dots don't slide, they scatter

If dot 1 always flew to cell 1, every swarm would sweep across the screen in one boring direction. So each swarm shuffles where every dot is headed: the old shape dissolves into a loose cloud and reassembles in 900ms - nothing fades, dots only move.

A dot letter A scattering into loose dots that reassemble into a B

05Future Plans

Right now the swarm only speaks Geist Pixel Circle. Next, I want it to turn any text in Geist Pixel Circle, Square or Grid into a swarm of dots or squares, so the swarm matches whichever pixel style your site is already using.

The letter S drawn in round dots, square pixels and a fine grid
new york--.----------:-- --