← All components
Atmospheres / background

Shape Grid

Drifting geometric cells leave a softly fading pointer trail.

Open in studio ↗
PLAYGROUND
Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • Give the parent an explicit height. All four original geometry branches and the radial vignette are retained.
  • Speed uses the source’s nominal60Hz movement; zero stops drifting while hover highlights can still settle.
  • Cell size is at least12px, buffers are capped at2048px per dimension, and very large canvases increase cell size to bound geometry. Trails are capped at100 cells.
  • Pointer and keyboard arrows highlight cells. Reduced motion leaves a still grid.
  • The included Demo.tsx and styles recreate the full preview.
React 19

React Bits · MIT with Commons Clause. Used with explicit project permission; see bundled notice.

Props

PropTypeDefaultDescription
shapesquare|hexagon|circle|trianglesquareCell shape
directiondiagonal|up|right|down|leftrightDirection
speednumber1Drift speed
squareSizenumber40Cell size
borderColorstring | CanvasGradient | CanvasPattern#999Line color
hoverFillColorstring | CanvasGradient | CanvasPattern#222Hover fill
hoverTrailAmountnumber0Trail length
classNamestring''Canvas classes.
styleCSSPropertiesundefinedCanvas styles.
pausedbooleanfalseFreeze the current presentation.
replayTokennumber0Change to replay/reset the component.