Wavy Grid

v1.0.0
FreeBackgroundsWebGLpowered by @vectorvesper/motion

A grid of fine lines rolling in slow, layered waves, with a soft swell that follows the pointer. Works on a light or dark ground. Shows a still grid under reduced motion.

Wavy Grid

Installation

Step 1. Initialize ProjectOne-time setup

Run once in your project root to configure paths and dependencies:

npx vectorvesper init
Step 2. Add ComponentInstalls source & assets

Downloads and registers the component in your project:

npx vectorvesper add wavy-grid
Step 3. Required DependenciesAuto-installed with CLI

If installing manually or managing your package lock:

npm install @vectorvesper/motion three
Packages:@vectorvesper/motionthree

Usage

A quiet hero background that still moves: a SaaS landing page, a portfolio, a conference site. It works on a light or dark background; set the three colours to match.

Usage

import { WavyGrid } from "@/components/vv/wavy-grid";

export function Hero() {
  return (
    <WavyGrid background="#f4f3f0" highlight="#2438a8" color="#b8c2ea">
      <h1 style={{ padding: "24vh 6vw" }}>Built to flow</h1>
    </WavyGrid>
  );
}

Do

  • Make highlight the strongest colour; it is what the crests show.
  • Turn fade off when the grid should run to the edges, for example behind a full-width band.

Don't

  • Do not push density very high on a phone; the lines get closer than a pixel and shimmer.

WebGL — render it on the client only

On Next.js, load it with ssr: false from a Client Component, as below. Vite apps need nothing extra.

"use client";

import dynamic from "next/dynamic";

const WavyGrid = dynamic(
  () => import("@/components/vv/wavy-grid").then((m) => m.WavyGrid),
  { ssr: false }
);
This component respects prefers-reduced-motion and provides a graceful fallback.

Props

A grid of fine lines rolling in slow, layered waves and drifting upward. The lines take the highlight colour on the crests and fade in the dips, and a soft swell rises under the pointer.

<WavyGrid />

The grid, with your content laid over it. Fills the area, which is 100svh tall unless you size it.

PropTypeDefaultDescription
colorstring"#b8c2ea"The colour of the lines in the troughs.
highlightstring"#2438a8"The colour the lines take on the crests.
backgroundstring"#f4f3f0"The colour behind the grid.
densitynumber22How many grid cells fit the height.
amplitudenumber0.8How tall the waves are. 0 keeps the grid flat.
speednumber0.6How fast the waves move.
driftnumber0.05How fast the grid drifts upward. 0 holds it still.
swellnumber1.2How high the pointer raises the grid. 0 turns it off.
reachnumber0.25How far the swell spreads, as a share of the height.
fadebooleantrueFades the grid out toward the edges.
classNamestring—Sizes the area. Without a height it is 100svh tall.
styleReact.CSSProperties—Inline styles for the area. A height here wins over the default.
childrenReact.ReactNode—Content drawn over the grid.
Under reduced motion it shows a still, flat grid in the same colours.
Runs on the Vector Vesper runtime: it stops drawing when it is off screen, draws at a lower resolution on a slow device, and comes back by itself if the browser drops its graphics context.
Client component. It renders its still state on the server and starts drawing once it mounts, so it is safe in a server-rendered route.

Source

/**
 * Wavy Grid — Vector Vesper
 * https://vectorvesper.dev/components
 *
 * Copyright (c) 2026 Vector Vesper
 * Released under the MIT License. This notice must be retained in copies and
 * substantial portions of the file. https://vectorvesper.dev/license
 */
export * from "./WavyGrid";
export { default } from "./WavyGrid";
View on GitHubReport an issue