Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsSlidingGridItem[][]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.
rowsnumber4The rows of tiles. More rows means smaller tiles.
aspectRationumber1.33The width of each tile divided by its height. Below 1 gives portrait tiles.
gapnumber16The space between tiles, in pixels.
radiusnumber14The corner radius of the tiles, in pixels. Large values give pills.
anglenumber-12The rotation of the whole wall, in degrees.
tiltnumber0Leans the wall back in 3D, in degrees. 0 keeps it flat.
speednumber24The 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.
parallaxnumber0.5How far the rows slide against each other as the pointer moves across the page, 0 to 1.
spotlightnumber0.6The size of the area around the pointer where dimmed or grayscale tiles come back to full colour, 0 to 1. 0 turns it off.
dimnumber0.35Fades the tiles outside the spotlight, which keeps text on top readable, 0 to 1.
grayscalebooleanfalseShows the tiles in grayscale until the spotlight brings their colour back.
fadenumber0.5Fades the edges of the wall into the page, 0 to 1.
tileColorstring""The background of text and empty tiles. Follows the theme when empty.
textColorstring""The colour of text tiles. Follows the theme when empty.
theme"dark" | "light""dark"Picks the default tile and text colours.
classNamestringNone
styleCSSPropertiesNoneInline styles for the root.

More background effects in Pro

View all

Related