Back to AIX Effects LibraryQA Verified · Synced
Layout & Gallery/<DepthParallaxGallery />·Intermediate

Depth Parallax Gallery

Produces believable spatial separation cleanly through pure GPU composite transforms with zero heavy Three.js overhead.

Next.js 16+React 19TypeScriptTailwind CSSZero External Deps
Hover horizontally or drag slider
01 · Foreground
Primary Layer
02 · Midground
Offset Plane
03 · Horizon
Deep Axis

Sweep horizontally over columns or adjust depthStrength control.

Installation

Zero External Dependencies

Zero external packages needed.

Usage

import { DepthParallaxGallery } from '@/components/effects/library/layout/DepthParallaxGallery'

<DepthParallaxGallery
  depthStrength={34}
  maxTiltDeg={5}
  layers={[
    { id: 'fg', tag: '01 · Foreground', title: 'Primary Layer', depthRatio: 0.35, accentColor: '#536dfe' },
    { id: 'mg', tag: '02 · Midground', title: 'Depth Offset', depthRatio: 0.68, accentColor: '#8765f7' },
    { id: 'bg', tag: '03 · Horizon', title: 'Focal Axis', depthRatio: 1.0, accentColor: '#30bfef' },
  ]}
/>

Props & API Reference

3 props
PropTypeDefaultDescriptionEffect
layersDepthLayerCard[](required)Cards configured with independent `depthRatio` speeds.Decouples foreground vs background travel distance.
depthStrengthnumber34Peak horizontal shift multiplier in pixels.Scales spatial parallax intensity.
maxTiltDegnumber5Maximum perspective Y-rotation angle in degrees.Enhances 3D angle tilt.

More in Layout & Gallery

View All 36 →
Click any grid card to expand focus span
stiffness: 340 · damping: 28

Expandable Grid

Interactive 2-column Bento showcase that expands selected cards smoothly with spring reflow.

View Details
Hover or focus any card below
01 · OPTIC
Precision Card

Sharp contrast when focused.

02 · DEPTH
Neighbor Dimming

Sibling cards step back calmly.

03 · PURE CSS
Zero Packages

Works across mouse, touch & keyboard.

blur 2.5px · dim 0.42 · scale 1.03

Focus Gallery

Focused card sharpens and elevates cleanly while unselected siblings softly dim and blur.

View Details
Wheel scroll, drag, or scrub track0%
01 / FRAME
Modular Deck
Snap-x rail track
02 / SKEW
Velocity Lean
±6deg inertia
03 / WHEEL
Smart Wheel
Auto edge release
04 / MOBILE
Touch Drag
Mandatory scroll snap
skewStrength: 6deg

Horizontal Scroll Gallery

Smooth wheel-to-horizontal showcase strip with velocity skew inertia and progress bar.

View Details