A true 3D floor of glowing lines that recedes forever to a lit horizon, with an optional ceiling for a tunnel.
An even grid of dots that swell to form shapes or words, hold, then ripple outward from the centre into the next one.
Customize
Usage
import { DotMatrixMorph } from "@/components/motionkit/dot-matrix-morph";
<DotMatrixMorph
className="h-[32rem] rounded-3xl"
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Dots morph
Every 3s
Brand reveals, product launches, logo moments, event pages and AI or hardware products that want a precise, digital feel.
Each shape or word is drawn once onto a tiny hidden canvas with one pixel per dot, and its alpha becomes that dot's target size. Every interval the targets change, and dots ease towards their new size in a ripple that starts at the centre and moves outward. Background dots never vanish completely, so the grid always reads as one surface.
| Prop | Type | Default | Description |
|---|---|---|---|
| shapes | ("circle" | "ring" | "square" | "diamond" | "triangle" | "plus")[] | ["circle", "diamond", "ring", "plus"] | The shapes the dots form, in order. |
| words | string[] | — | Short words to spell instead of shapes. |
| color | string | "#B9C7FF" | Dot colour as a hex value. |
| spacing | number | 14 | Distance between dots in pixels. |
| interval | number | 3 | Seconds each shape holds. |
| interactive | boolean | true | Swell the dots near 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/dot-matrix-morph. It saves the file to components/motionkit and installs its dependencies.
Dot Matrix Morph 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 holds the first shape. It also stops drawing while off screen.
Yes. Pass words, such as ["Motion", "Kit"], and the dots spell each one in turn. Short words read best.
A true 3D floor of glowing lines that recedes forever to a lit horizon, with an optional ceiling for a tunnel.
A sea of dots on a 3D plane rolling in slow waves to the horizon, swelling up around the cursor.
A hairline grid with short pulses of light travelling along its lines, like data moving through a network, brightening around the cursor.
The live preview is free to explore. Plus unlocks the source for Dot Matrix Morph 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 { DotMatrixMorph } from "@/components/motionkit/dot-matrix-morph";
<DotMatrixMorph
className="h-[32rem] rounded-3xl"
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Dots morph
Every 3s