Skip to content
← Back to experiment
[ EXP-025 / PLAYGROUND MODE ]

Depth Parallax / Playground

Move foreground and background layers at different speeds.

ScrollReactWeb APIsCSSscrollkeyboard
EXP-025 / LIVE PREVIEW
DEPTH
IN MOTION.
STATIC / REDUCED MOTION
REDUCED MOTION / STATIC RESULT

Reduced motion is enabled. This preview displays the stable result without zoom, displacement or scrambling.

01 / Overview

Move foreground and background layers at different speeds. An independent interaction study built for the Resources archive.

02 / How it works

Normalize the local scroll offset and map it to two opposing layer translations.

03 / Implementation

Actual React demo source. Import this component with the archive stylesheet and pass variant (depthParallax), values, playing, replay and reduced props. The image demos use /images/resources-bg.png.

Loading implementation…

04 / Parameters

ParameterTypeRangeDefault
StrengthNumber0.2–10.6

05 / Usage & accessibility

Enable playback, then scroll the focusable preview with a wheel, touch or keyboard. Motion follows the local scroll position. Reduced motion shows a static composition.

Requires a current browser with Web Animations, requestAnimationFrame and Pointer Events. Background imagery is decorative; essential labels remain in the document. The magnetic target supports tap and keyboard activation.

Related experiments.