Glass Tiles
A shimmering background of colorful glass tiles
glass-tiles-tw
Customize
Tweak the props liveAnimation
1
1
0
Tile Field
4
6
0.33
3
Color
#1E00FF#D765E6#FFFFFFProps
| Name | Type | Default | Description |
|---|---|---|---|
width | string | number | "100%" | Container width |
height | string | number | "100%" | Container height |
className | string | "" | Additional CSS classes for styling |
children | ReactNode | undefined | Content rendered above the effect |
speed | number | 1 | Animation speed multiplier (0–3) |
tileDensity | number | 4 | Tile lattice density across the surface (1–16) |
rippleLayers | number | 6 | Number of directional ripple layers stacked through the tile pole (1–8) |
warpStrength | number | 0.33 | Per-tile inverse-distance warp strength (0–0.6) |
bandSharpness | number | 3 | Sharpness of the bright band peaks; higher is thinner, hotter ribbons (0.5–10) |
chromaticSpread | number | 0 | Per-channel chromatic separation along the gradient axis (0–1) |
colorA | string | "#1E00FF" | First gradient stop in hex format (the deeper color) |
colorB | string | "#D765E6" | Second gradient stop in hex format (the brighter color) |
backgroundColor | string | "#FFFFFF" | Background fill where the field is fully dark in hex format |
opacity | number | 1 | Master alpha (0–1) |
dpr | number | 1.5 | Maximum device pixel ratio (caps GPU work) (1–3) |
widthstring | numberContainer width
Default:
"100%"heightstring | numberContainer height
Default:
"100%"classNamestringAdditional CSS classes for styling
Default:
""childrenReactNodeContent rendered above the effect
Default:
undefinedspeednumberAnimation speed multiplier (0–3)
Default:
1tileDensitynumberTile lattice density across the surface (1–16)
Default:
4rippleLayersnumberNumber of directional ripple layers stacked through the tile pole (1–8)
Default:
6warpStrengthnumberPer-tile inverse-distance warp strength (0–0.6)
Default:
0.33bandSharpnessnumberSharpness of the bright band peaks; higher is thinner, hotter ribbons (0.5–10)
Default:
3chromaticSpreadnumberPer-channel chromatic separation along the gradient axis (0–1)
Default:
0colorAstringFirst gradient stop in hex format (the deeper color)
Default:
"#1E00FF"colorBstringSecond gradient stop in hex format (the brighter color)
Default:
"#D765E6"backgroundColorstringBackground fill where the field is fully dark in hex format
Default:
"#FFFFFF"opacitynumberMaster alpha (0–1)
Default:
1dprnumberMaximum device pixel ratio (caps GPU work) (1–3)
Default:
1.5