Skip to content
PixiKit

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
NameTypeDefaultDescription
columnsnumber4How many items sit in a row.
gapnumber12The space between items, in pixels.
reachnumber160How far from the pointer an item still reacts, in pixels.
liftnumber8How far the item under the pointer rises, in pixels.
scalenumber1.06How much the item under the pointer grows: 1 is not at all.
ringColorstring"#7c3aed"The ring and glow around the items near the pointer.
itemsstring[]["Forms", "Charts", "Tables", "Auth", "Search", "Upload", "Maps", "Chat", "Docs", "Billing", "Inbox", "Teams"]The words drawn as tiles when there are no children.
itemHeightnumber80The height of each word tile, in pixels.
widthnumberNoneThe widest the grid grows, in pixels; it never overflows a narrower container. Left out, it sizes to its container and children.
classNamestringNone
childrenReactNodeNoneThe grid's items, cards or logos. Word tiles from `items` show without them.

More interaction effects in Pro

View all

Related