A deep 3D starfield that twinkles at rest and stretches into glowing streaks with motion trails at warp. Warp is driven by a prop, page scroll velocity and press-and-hold, and the vanishing point leans toward the pointer.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { CanvasStarfieldWarp } from "@/components/hyperblur-pro/canvas-starfield-warp"
<CanvasStarfieldWarp style={{ height: 480, background: "#02030a" }} />| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#ffffff", "#93c5fd", "#c4b5fd"] | Star colors. The first is the main color; the rest tint about a third of the stars. The second also tints the warp glow. |
| speed | number | 1 | Travel speed multiplier. |
| density | number | 1 | Star count multiplier based on area. Capped at 1000 stars, or 450 on low-end devices. |
| warp | number | 0 | Base warp amount from 0 (cruising) to 1 (full warp). Changes are eased. |
| scrollWarp | boolean | true | Add warp from page scroll velocity while the background is on screen. |
| interactive | boolean | true | Lean the vanishing point toward the pointer and warp while the pointer is pressed. |
| children | React.ReactNode | - | Content rendered on top of the background. |
| className | string | "" | Classes for the root element. Give it a size and a background color. |
| style | React.CSSProperties | - | Inline styles for the root element. |
Source code is included in Standard and above