Backgrounds

Waves

A curtain of vertical lines swaying on layered waves. The pointer pushes the lines aside. Fills its parent: place it with absolute inset-0 behind your content.
import { Waves } from "pleate/effects/waves";

Behind a headline

Go with the flow

Props

colors

CSS colors or tokens: [lines]. Defaults follow the palette.

string[]

speed

Playback speed.

numberdefault 1

scale

Pattern size; above 1 is bigger.

numberdefault 1

interactive

Follow the pointer over the parent element.

booleandefault true

gap

Space between lines in px, times scale.

numberdefault 14

amplitude

How far the lines sway in px.

numberdefault 26

Accessibility

  • Decorative: the canvas is aria-hidden and ignores pointer events, so content on top stays clickable.
  • Pauses off screen and in hidden tabs; reduced motion shows one still frame.
  • Canvas 2D.