SHOWCASE / MOTION & INTERACTION
Physics.
Let the dots fall. Watch them bounce off the words on the page.
MAKE AN
IMPACT.
IMPACT.
A thousand small reasons to let go.
React · View code
Rain, text collisions, and reform
const surface = useRef<SwarmSurfaceHandle>(null);
const createPhysics = useCallback((points: readonly PhysicsPoint[]) =>
new ProSwarmPhysics(points, { collisions: true, particleRadius: 1.8 }), []);
<SwarmSurface ref={surface} targets={targets} createPhysics={createPhysics}
colliders={[{ ref: headline, kind: "text" }]}
gravity={740} restitution={0.76} />
// Separate actions: release, then return whenever you choose.