Particle shapes
Thousands of dots turning in 3D that flow from a spiral galaxy into a double helix, then into the Lorenz attractor's two wings, a honeybee, a butterfly and the Remold mark.
Things to try
- Watch it play. The galaxy turns, then its arms unwind and stretch into two twisting strands. The strands loop into the Lorenz attractor's two wings, which fold into a honeybee, stripes, wings and all, then open out into a butterfly and stand up as the Remold mark before it gathers back into the galaxy.
- Move your cursor through it. The dots part around the pointer and drift back as it leaves, as if you were moving through space.
- Pick a shape. It stops playing and flows straight there, from wherever the dots are.
Install
npx shadcn@latest add https://your-docs-site/r/particle-shapes.jsonDependencies
The install command adds these for you. If you copy the code by hand, install them yourself.
npm install @base-ui/react @remold-ui/core @remold-ui/reactHow it works
- Shapes from parts. Each shape is built with
shapesfrom@remold-ui/core:spiral,helixandattractor("lorenz")are ready-made, the bee and the butterfly are each acomposeof ellipsoids, spheres, curves and ovals, and the mark is its SVG path made solid withfromPath. The parts are moved with.at,.rotateand.mirrorand coloured with.toneand.stripes. - Remold draws it.
<Remold.Particles>takes the shape and acount, turns it withcamera, and makes overlapping dots glow withblend="add". Colours come from a namedpalette, so each part says"gold"or"wing"rather than a number. - A scatter in between.
transition="scatter"dissolves each shape into a glittering cloud that spreads through the depth too, holds a moment, then gathers into the next. - One flow, not a swarm.
pairing="flow"pairs dots by where they sit along each shape, so the galaxy's core becomes the top of the helix and the path's start becomes the bee's tail. - Cheap when it can be. It only draws while on screen, stops turning when paused (
camera={{ spin: 0 }}), and uses fewer dots on narrow screens. Behind it, a<Remold.Canvas>paints a still field of faint stars once.
Unit chart
A chart where every dot is 25 customers: regroup by plan, region or channel and the same dots move to their new column.
Voice assistant
A voice assistant's orb of 3D dots that breathes while idle, ripples with your voice as it listens, swirls into a ring as it thinks, and pulses as it speaks.