Backgrounds
Starfield Depth Drift
A quiet, layered field of drifting stars that gives any dark section real depth — near points move faster and glow brighter, far points barely shift. Reads as premium and spacious, not busy, and never distracts from content laid over the top.
$ velocityx add starfield-depth-drift
Built for react.
Needs react already installed
as a peer dependency.
An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.
Full docs for Starfield Depth Drift →
Needs a licence key —
subscribe here, then
velocityx loginonce.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| className | string | No | '' | |
| density | number | No | 1 | |
| speed | number | No | 1 | |
| color | string | No | ||
| paused | boolean | No | false |
File this creates
The CLI writes this path into your project, relative to its root — nothing else moves.
components/velocity/starfield-depth-drift/StarfieldDepthDrift.tsx Using the Starfield Depth Drift component
Install it with velocityx add starfield-depth-drift.
The CLI writes the source straight into your project — no runtime dependency, no registry
lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.
Related components
More from Backgrounds.
PCB-style wiring paths with travelling light pulses, giving technical and infrastructure pages a systems-and-signal backdrop without any canvas or extra dependency.
reactSlow drifting field of points that link into triangles when close, like a star map redrawing itself. A calm 'data / network / intelligence' backdrop for dashboard, pricing, and AI-product heroes.
reactThree depth layers of a dot matrix that drift at different rates with the pointer, giving a flat section real depth. The structured counterpart to free-floating particle backgrounds — sits behind pricing tables, feature grids, and app screenshots.
reactStripe-style ribbon of thin lines that twists in pseudo-3D — additive blending lights up a glowing fold where the lines bunch. Pure canvas, zero dependencies.
react