Grid Motion
Web (React)
An interactive, infinite grid that tracks mouse movement with beautiful inertia physics.
An interactive, infinite grid that tracks mouse movement with beautiful inertia physics. Perfect for hero sections or showcasing features and partner logos.
Design
Development
Engineering
Architecture
Performance
Accessibility
Framer Motion
Tailwind
React
Next.js
Modus UI
Components
Interactive
Responsive
Accessible
Fast
Beautiful
Modern
Clean
Simple
Flexible
Scalable
Reliable
Robust
Elegant
Seamless
Fluid
Dynamic
Installation
CLI
npx @modus-ui/cli add grid-motionManual
- Copy the code from the component tab.
- Create a file at
components/ui/grid-motion.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | ReactNode[] | [] | Array of items to populate the grid. Should ideally have at least 28 items to fill the viewport. |
gradientColor | string | "hsl(var(--background))" | Center color of the radial gradient mask overlay. |
Comments