# Distortion Grid

Distortion Grid is a free, MIT-licensed standalone component from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

An animated grid background. Thin lines undulate in slow sweeping waves, and hovering repels the grid fabric outward from your cursor.

- Category: Backgrounds
- Built with: Canvas, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/distortion-grid

## Install

```bash
npx shadcn@latest add @aicanvas/distortion-grid
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

## Use it

It installs to `components/aicanvas/distortion-grid.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import DistortionGrid from '@/components/aicanvas/distortion-grid'

<DistortionGrid />
```

It takes no props.

## About

Distortion Grid renders a fine grid of thin lines on a 2D canvas and bends the lattice with two slow-moving sine fields, so the surface always looks like a living blueprint. Your cursor acts as a repulsion field: nearby intersections push outward and the deformation propagates softly across the whole canvas. The implementation is pure canvas plus Tailwind classes for the wrapper, no WebGL, which keeps the bundle small and the GPU cost predictable. Drop it behind a hero headline or as the entire backdrop for a long-form editorial page.

Use cases: Hero section, Landing page, Editorial.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Distortion Grid rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/distortion-grid.

## Related

- [Grain Background](https://aicanvas.me/components/noise-bg.md): A grain background of randomly scattered dots. Hover to illuminate them with a soft Gaussian glow and organic connection lines.
- [Spider Web](https://aicanvas.me/components/particle-constellation.md): An animated spider web background. Silk strands bow slowly at rest, and hovering pushes each node so it bounces back under tension.
- [Diamond Grid](https://aicanvas.me/components/diamond-grid.md): A faint canvas grid of diamonds. Seeded sparks send light outward until fronts meet.
- [Wave Lines](https://aicanvas.me/components/wave-lines.md): An animated line background. Dense vertical lines ripple with two layered sine waves, bunching and breathing. Hover to send waves across the canvas.
- [Grid Lines](https://aicanvas.me/components/grid-lines.md): A grid background of dots connected by thin lines. The cursor lights a radial glow and bulges the grid outward like a lens as it moves.
