Skip to content

Wave Lattice

A fine perspective mesh drifts over a sculpted wave surface.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import WaveLattice from "./WaveLattice";
export default function Example() {
return (
<WaveLattice
color={"#a7bfd2"}
background={"#141d26"}
density={22}
amplitude={35}
speed={12}
paused={false}
height={420}
/>
);
}

Using Wave Lattice

Use Wave Lattice as a bounded section background and pass foreground content through children. Height reserves the layout before the SVG renders.

Density changes the number of mesh lines and amplitude changes the surface shape. Use paused for a still composition; reduced motion also stops the drift.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#a7bfd2"Mesh and foreground colour.
backgroundstringNo"#141d26"Surface background.
densitynumberNo22Lines along each mesh axis, from 6 to 40.
amplitudenumberNo35Wave height in SVG units, from 0 to 80.
speednumberNo12Duration of each drift direction in seconds.
childrenReactNodeNoundefinedOptional foreground content.
heightnumber | stringNo420Reserved height of the effect.
pausedbooleanNofalsePause the decorative animation.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Lava Lamp

Backgrounds

Warm liquid forms merge and drift inside a softly lit glass lamp.

Helix Field

Backgrounds

Two strands of shaded particles rotate around fine connecting rungs.

Kinetic Mobile

Backgrounds

Suspended discs, rings and counterweights sway on fine connecting rods.

Guilloche Field

Backgrounds

Fine engraved loops turn through an intricate geometric rosette.