Retro Grid
Perspective grid scrolling forever toward the horizon.
- 0.7 KB gzipped
- Zero dependencies
- Reduced-motion safe
- Base UI & Radix compatible
Preview
Launch week · Day 3
Back to the grid
Installation
pnpm dlx shadcn@latest add https://paulkeys.org/r/retro-grid.jsonAdds components/velora/retro-grid.tsx and merges the keyframes and tokens into your CSS.
Props
| Prop | Type | Default |
|---|---|---|
anglePerspective angle of the grid plane | number | 55 |
cellSize | number | 56 |
opacity | number | 0.4 |
Also accepts every <div> attribute, forwarded to the root element.
Accessibility
- Reduced motion
- The scroll animation is off; the perspective grid plane shows as a still grid under the top and bottom fades.
- Keyboard
- Decorative — nothing to operate.
- Screen readers
- Decorative; the wrapper is aria-hidden.