Skip to content
Cards

ParallaxTile

Layers inside slide at different speeds with the pointer, so a flat card feels deep. Wrap each layer in ParallaxLayer.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
childrenReactNode—ParallaxLayer elements.
classNamestringdark tile, 14rem tallSize and look of the tile.
ParallaxLayer depthnumber20Pixels the layer moves at the edge. Bigger feels closer; negative moves the other way.