Magnetic Grid
A grid whose items lift, grow and light up the nearer they are to the pointer.
pixikit.com/docs/effects/magnetic-grid
Customize
Columns4
Gap12px
Reach160px
Lift8px
Scale1.06
Ring color
Item height80px
Width640px
Props
11| Name | Type | Default | Description |
|---|---|---|---|
columns | number | 4 | How many items sit in a row. |
gap | number | 12 | The space between items, in pixels. |
reach | number | 160 | How far from the pointer an item still reacts, in pixels. |
lift | number | 8 | How far the item under the pointer rises, in pixels. |
scale | number | 1.06 | How much the item under the pointer grows: 1 is not at all. |
ringColor | string | "#7c3aed" | The ring and glow around the items near the pointer. |
items | string[] | ["Forms", "Charts", "Tables", "Auth", "Search", "Upload", "Maps", "Chat", "Docs", "Billing", "Inbox", "Teams"] | The words drawn as tiles when there are no children. |
itemHeight | number | 80 | The height of each word tile, in pixels. |
width | number | None | The widest the grid grows, in pixels; it never overflows a narrower container. Left out, it sizes to its container and children. |
className | string | None | |
children | ReactNode | None | The grid's items, cards or logos. Word tiles from `items` show without them. |