Skip to content
Interactive

ParallaxStage

Layers at different depths slide apart under the mouse and as the stage scrolls by, so a flat scene opens up. Touch users get the scroll part.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
layersParallaxStageLayer[]—Back layer first: id, content, depth and className. Depth 0 stays still, 1 moves the full strength, below 0 moves with the pointer.
strengthnumber40Pixels a layer of depth 1 moves from the middle.
scrollbooleantrueLayers also move as the stage passes through the screen.
classNamestring""On the stage. Set its height here.