A wireframe ocean in true perspective: a grid of layered sine waves rolls toward the viewer with depth fog and glowing crests. The pointer raises a swell where it touches the surface and gently turns the camera.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { CanvasWavesGrid } from "@/components/hyperblur-pro/canvas-waves-grid"
<CanvasWavesGrid style={{ height: 480, background: "#05060d" }} />| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#22d3ee", "#6366f1", "#f472b6"] | Near color, far color and crest highlight color. |
| speed | number | 1 | Wave and travel speed multiplier. |
| density | number | 1 | Grid resolution multiplier, from 0.3 to 2.5. Reduced automatically on low-end devices. |
| amplitude | number | 1 | Wave height multiplier. |
| horizon | number | 0.42 | Vertical position of the horizon as a fraction of the height. |
| interactive | boolean | true | Raise a swell under the pointer and steer the camera with it. |
| 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