Backgrounds

Plus Grid

A canvas field of '+' glyphs — scroll or pointer motion injects a traveling wave that ripples and decays across the grid.

Install

# PlusGrid needs no npm packages

Then copy 2 files into your project:

  • components/registry/plus-grid/plus-grid.tsx
  • hooks/use-animation-loop.ts

Props

PropTypeDefaultDescription
gapXnumber42Horizontal gap between glyphs.
gapYnumber38Vertical gap between glyphs.
fontSizenumber20Glyph size.
baseOpacitynumber0.5Resting opacity of the field.
waveAmplitudenumber12Peak displacement at full wave energy.
waveFrequencynumber0.35Ripple tightness across columns.
waveDecaynumber0.96Energy decay per tick — low snaps back, high lingers.
autoPulsebooleantrueFire a wave pulse every few seconds.
colorstring (hex)"#a855f7"Glyph color.

What It Demonstrates

Ripple
A circle expanding from the point of a tap, confirming the press.
Scroll-driven animation
An animation whose progress is tied directly to scroll position.
Hover effect
Visual change when the cursor moves over an element.
Loop
An animation that repeats, a set number of times or infinitely.

Related Components

Appears In