Tailwind UI Pattern Registry for humans and agents

dots grid wave sine animation subtle minimal background pattern

Wave Grid

Details

Category
backgrounds
Complexity
low
Browser
baseline-2024
Updated
2026-06-02
Animated Reduced Motion aria-hidden
dotsgridwavesineanimationsubtleminimalbackgroundpattern

Parameters

Name Type Default Description
SPACING number 28 Gap between dot grid columns and rows in px
AMPLITUDE number 7 Max vertical displacement of dots in px
WAVE_SPEED number 0.7 Speed of wave propagation (radians per second)
WAVE_FREQ number 0.38 Spatial frequency of the wave across the grid

Each dot’s vertical position is offset by sin((col + row) * WAVE_FREQ + time * WAVE_SPEED) * AMPLITUDE, creating a diagonal wave across the entire grid. Alpha is driven by distance from the canvas center via a radial proximity calculation — dots near the center are most visible, fading to near-invisible at the edges for a natural vignette.

At reducedMotion: true the wave displacement is set to zero, leaving a static dot grid.