Drifting stars join into constellations as they pass close, and reach out to the cursor with lines of light.
Thousands of fine dots forming a slowly turning 3D sphere with a ripple across its surface, drifting aside from the cursor.
Customize
Usage
import { ParticleSphere } from "@/components/motionkit/particle-sphere";
<ParticleSphere
className="h-[32rem] rounded-3xl"
>
<h1>Your headline</h1>
</ParticleSphere>Motion
The exact curves this component runs, plotted with Motion's own maths.
Sphere turns
Runs on its own
Dots move aside
Pointer moves
AI products, data and analytics platforms, research labs and keynote-style hero sections.
Dots are placed with a Fibonacci spiral so each covers the same share of the sphere. Every frame they're rotated in 3D, tilted towards the viewer and projected with perspective, so nearer dots are larger and brighter. A ripple of latitude bands swells the surface, and dots within reach of the pointer are pushed outward on screen with easing. It's drawn on a 2D canvas and stops while off screen.
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#B9C7FF" | Dot colour as a hex value. |
| count | number | 1600 | Number of dots on the sphere. |
| speed | number | 1 | Turn speed. 0 holds it still. |
| ripple | number | 0.5 | How much the surface ripples, 0 to 1. |
| interactive | boolean | true | Let the dots move aside from the pointer. |
| children | ReactNode | — | Your content, layered above. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Nothing beyond React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/particle-sphere. It saves the file to components/motionkit and installs its dependencies.
Particle Sphere is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, it draws one still frame. It also stops drawing while off screen.
Drifting stars join into constellations as they pass close, and reach out to the cursor with lines of light.
A sea of dots on a 3D plane rolling in slow waves to the horizon, swelling up around the cursor.
A glossy pearl of slowly swirling colour that breathes, catches the light and leans towards the cursor. A calm centrepiece for a hero.
The live preview is free to explore. Plus unlocks the source for Particle Sphere and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { ParticleSphere } from "@/components/motionkit/particle-sphere";
<ParticleSphere
className="h-[32rem] rounded-3xl"
>
<h1>Your headline</h1>
</ParticleSphere>Motion
The exact curves this component runs, plotted with Motion's own maths.
Sphere turns
Runs on its own
Dots move aside
Pointer moves