Scroll

Parallax

Layers that travel at different speeds as you scroll, for real depth.

Paste it into ChatGPT, Claude, Cursor or v0.
depth0.60

Usage

import { Parallax } from '@vizzele/react';

<Parallax speed={0.6} className="far-layer" />
<Parallax speed={0.2}>Mid layer</Parallax>
<Parallax speed={-0.25}>Closer than the page</Parallax>

Props

PropTypeDefaultDescription
speednumber0.30 = page speed, positive = farther, negative = closer.
axis'x' | 'y''y'Direction.
zoombooleanfalseScale up with depth.
containerHTMLElement | WindowwindowScroll root.

Accessibility

  • Only animates while on screen. Off with reduced motion — the layout stays intact.