Sliding Grid
A slanted wall of tiles whose rows drift past each other, slide with the pointer and come back to full colour under a spotlight.
pixikit.com/docs/effects/sliding-grid
Customize
Rows4
Aspect ratio1.33
Gap16px
Radius14px
Angle-12deg
Tilt0deg
Speed24
Direction
Parallax0.50
Spotlight0.60
Dim0.35
Grayscale
Fade0.50
Tile color
Text color
Theme
Props
19| Name | Type | Default | Description |
|---|---|---|---|
items | SlidingGridItem[] | [] | The tile content. Image URLs and paths render as photos, other strings as text, and nodes as they are. Items repeat to fill the wall. |
rows | number | 4 | The rows of tiles. More rows means smaller tiles. |
aspectRatio | number | 1.33 | The width of each tile divided by its height. Below 1 gives portrait tiles. |
gap | number | 16 | The space between tiles, in pixels. |
radius | number | 14 | The corner radius of the tiles, in pixels. Large values give pills. |
angle | number | -12 | The rotation of the whole wall, in degrees. |
tilt | number | 0 | Leans the wall back in 3D, in degrees. 0 keeps it flat. |
speed | number | 24 | The drift speed of the rows, in pixels per second. 0 keeps them still. |
direction | "alternate" | "left" | "right" | "alternate" | Which way the rows drift. `alternate` sends neighbouring rows in opposite directions. |
parallax | number | 0.5 | How far the rows slide against each other as the pointer moves across the page, 0 to 1. |
spotlight | number | 0.6 | The size of the area around the pointer where dimmed or grayscale tiles come back to full colour, 0 to 1. 0 turns it off. |
dim | number | 0.35 | Fades the tiles outside the spotlight, which keeps text on top readable, 0 to 1. |
grayscale | boolean | false | Shows the tiles in grayscale until the spotlight brings their colour back. |
fade | number | 0.5 | Fades the edges of the wall into the page, 0 to 1. |
tileColor | string | "" | The background of text and empty tiles. Follows the theme when empty. |
textColor | string | "" | The colour of text tiles. Follows the theme when empty. |
theme | "dark" | "light" | "dark" | Picks the default tile and text colours. |
className | string | None | |
style | CSSProperties | None | Inline styles for the root. |