Skip to main content
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →
Layout & Scroll4 min read

Pointer-Driven Depth Parallax Header

Direct Definition & Architecture

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.

Live .bexode900 × 500

Move the cursor across the scene; it also drifts when idle.

Live inputs

Technical Specifications

Scene format
One .exode file
Live inputs
depth, headline, accent, accent2
Motion
Five depth layers + pointer drift
Use case
Hero header or section background

Interaction Phases

Idle driftWithout a pointer the layers follow a slow sine drift.
PointerEach ridge offsets by its own depth fraction of the cursor position.
DepthThe depth input scales every layer offset from flat to exaggerated.
HeaderThe headline and sun stay anchored while the ridges move behind them.

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

parallax-header.jsx
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.

Try for free