Pointer-Driven Depth Parallax Header
A depth parallax header separates a scene into layers that move by different fractions of the pointer position. Nearby layers shift more than distant ones, which reads as depth without moving the page layout.
Move the cursor across the scene; it also drifts when idle.
Technical Specifications
Interaction Phases
The scene keeps one Idle state. These phases are driven by its inputs and pointer events; the same values appear in the code below.
Use the scene
import { ExodeUICanvas } from 'exodeui';
// parallax-header.bexode goes in /public
export function ParallaxHeader() {
return (
<ExodeUICanvas
src="/animations/react-parallax.bexode"
fit="Layout"
autoPlay
interactive
inputs={{
depth: 1,
headline: 'Built in layers',
accent: '#ffb86b',
accent2: '#5b4bd6',
bg: '#120f2a',
}}
style={{ width: '100%', height: 500 }}
/>
);
}This snippet loads /animations/react-parallax.bexode with the same inputs shown in the live stage.
Architectural Breakdown
Fixed headers consume mobile screen space, while flat hero images feel static.
This scene gives a header five layers that respond to the pointer at different rates, so the background reads as a space rather than a picture.
The scene redraws its layers on the canvas, so pointer movement does not trigger page layout.
Frequently Asked Questions
Explore Related Motion Guides & Tooling
Build your next living interface today.
Design fluid physics and visual logic in ExodeUI and export directly to React, Swift, and Flutter.