Masonry Grid
Web (React)
A fully responsive, animated masonry layout powered by Framer Motion.
A fully responsive, animated masonry layout powered by Framer Motion. It automatically calculates column sizes based on screen width and provides stunning entrance animations with blur effects.
Installation
CLI
npx @modus-ui/cli add masonry-gridManual
- Copy the code from the component tab.
- Create a file at
components/ui/masonry-grid.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | MasonryItem[] | [] | Array of objects containing id, height, and content. |
animateFrom | "top" | "bottom" | "left" | "right" | "center" | "random" | "bottom" | Direction from which items animate in. |
stagger | number | 0.05 | Delay interval between item animations. |
Comments