Toggle Sidebar B
AppearanceLight & dark mode D

Waves

Layered lines that form smooth wave patterns with animation.

Default

Move the cursor across the stage to push the lines. In light mode the line color swaps to a gray until you pick your own.

Dark previewReplay previewOpen in new tab

Customize

Wave Speed X0.01
Waves Color

API Reference

Waves

PropTypeDefaultDescription
lineColorstring'black'Defines the color of the wave lines drawn on the canvas.
backgroundColorstring'transparent'Sets the background color of the waves container.
waveSpeedXnumber0.0125Horizontal speed factor for the wave animation.
waveSpeedYnumber0.005Vertical speed factor for the wave animation.
waveAmpXnumber32Horizontal amplitude of each wave.
waveAmpYnumber16Vertical amplitude of each wave.
xGapnumber10Horizontal gap between individual wave lines.
yGapnumber32Vertical gap between points on each wave line.
frictionnumber0.925Controls how quickly the cursor effect slows down.
tensionnumber0.005Determines the springiness of the cursor effect on points.
maxCursorMovenumber100Limits how far each point can shift due to cursor movement.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. It listens to mouse and touch movement on the window but does not take focus.