A perspective dot sea that rolls toward a glowing horizon. Swells move through thousands of dots that brighten on the crests and fade into depth fog, a soft hill follows the pointer across the surface and every click sends a ring travelling over the water.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { WaveMeshHorizon } from "@/components/hyperblur-pro/wave-mesh-horizon"
<WaveMeshHorizon style={{ height: 560 }}>
<h1 style={{ color: "#fff", textAlign: "center", paddingTop: 120 }}>Ride the swell</h1>
</WaveMeshHorizon>| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#04050e", "#4f63ff", "#ffe1f4", "#ff4f9a"] | Sky, dot, crest and horizon glow colors. |
| speed | number | 1 | Wave and ring speed multiplier. |
| density | number | 1 | Dot density from 0.3 to 2. Capped at about 5600 dots, or 2800 on low-end devices. |
| amplitude | number | 1 | Height of the swells. |
| horizon | number | 0.46 | Vertical position of the horizon, from 0 (top) to 1 (bottom). |
| dotSize | number | 1.9 | Radius in pixels of the nearest dots. Far dots shrink with distance. |
| stars | boolean | true | Draw a faint twinkling star field above the horizon. |
| interactive | boolean | true | Raise a hill under the pointer and send a ring on click or tap. |
| autoplay | boolean | true | Let a virtual pointer drift across the sea 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. |
Source code is included in Standard and above