A dot grid on springs. Dots are pulled magnetically toward the cursor, wobble back when it leaves and stretch into short velocity streaks while they move, shifting color with how far they travel. Clicks fire a shockwave that throws the grid outward and lets it settle.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { KineticDotGrid } from "@/components/hyperblur-pro/kinetic-dot-grid"
<KineticDotGrid style={{ height: 520 }}>
<h1 style={{ color: "#fff", textAlign: "center", paddingTop: 200 }}>Move with intent</h1>
</KineticDotGrid>| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#555a75", "#8b5cf6", "#5eead4"] | Resting, moving and fastest dot colors. |
| gap | number | 26 | Distance between dots in pixels. Widened automatically to stay under about 4800 dots, or 2200 on low-end devices. |
| dotSize | number | 1.6 | Dot radius in pixels. |
| radius | number | 240 | Reach of the magnetic pull in pixels. |
| pull | number | 1 | Strength of the magnetic pull. |
| stiffness | number | 1 | Spring stiffness. Lower values feel looser and wobblier. |
| speed | number | 1 | Simulation speed multiplier. |
| interactive | boolean | true | Follow the pointer and fire a shockwave on click or tap. |
| autoplay | boolean | true | Let a virtual cursor sweep the grid until the visitor interacts, and again after a few idle seconds. |
| children | React.ReactNode | - | Content rendered on top of the background. |
| className | string | "" | Classes for the root element. Give it a height. |
| style | React.CSSProperties | - | Inline styles for the root element. Override background to change the backdrop. |
Source code is included in Standard and above