v0.0.1

FlipTiles

A WebGL array of solid cubes seen in slight perspective: obsidian tops, metallic colored sides and polished beveled edges. Roll waves tip cubes 90° with a subtle spring to reveal their color, cast shadows and glowing grooves add depth, and cubes rise under the pointer.

Show hero

Customize

Side color
#4f6bff
Highlight
#b8c4ff

Props

PropTypeDefaultDescription
childrenReactNode—Content layered above the background
colorstring'#4f6bff'Accent color of the cube sides, revealed on top as cubes roll (hex)
highlightColorstring'#b8c4ff'Bevel and reflection highlight color (hex)
tileSizenumber72Width of one cube plus its gap in pixels
speednumber1Animation speed multiplier
pattern'wave' | 'ripple' | 'drift''wave'Roll choreography: 'wave' sweeps in columns, 'ripple' spreads out from the center, 'drift' flows in organic patches
interactivebooleantrueWhether the light and rising cubes follow the pointer
classNamestring—Extra class name

Dependencies

WebGL