A pinned WebGL section that flies the camera through your photographs. Every photo is given a depth map, either a built-in radial or bottom-up gradient refined by luminance, or any grayscale image you supply, and a shader displaces it by that depth: as you scroll the camera pushes forward, near layers rush past and dissolve with a warm edge, and the next photo opens up behind them. The cursor adds parallax and a slow idle sway keeps the scene alive. Headline and line swap with every photo and a segmented bar tracks progress. Reduced motion or missing WebGL falls back to plain photo layers with a simple fade.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { DepthPhotoScroll } from "@/components/hyperblur-pro/depth-photo-scroll"
<DepthPhotoScroll
depth="bottom-up"
slides={[
{ src: "/valley.jpg", alt: "A valley", title: "First light", text: "Blue before gold." },
{ src: "/lake.jpg", alt: "A lake", title: "Still water", text: "Glass and sky.", depth: "radial" },
]}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| slides | DepthPhotoSlide[] | 5 Unsplash landscapes | Photos in order, each with src, alt, title, text and an optional depth. Images must allow cross-origin loading. |
| depth | "radial" | "bottom-up" | string | "bottom-up" | Default depth source for every slide: radial (edges near, center far), bottom-up (bottom near, top far) or the URL of a grayscale depth map with the same aspect as the photo (white is near). A slide's own depth overrides it. |
| eyebrow | string | "Depth fly-through" | Small label at the top left. |
| scrollHint | string | "Scroll to fly forward" | Hint at the bottom right that fades after the first scroll. Pass an empty string to hide it. |
| accent | string | "#8ee6ff" | Color of the progress bar, eyebrow dot and focus rings. |
| lengthPerSlide | number | 120 | Scroll distance in vh spent on each transition. |
| stageHeight | string | "100vh" | Height of the pinned stage, any CSS length such as 100svh. |
| smoothing | number | 6 | How quickly the scene follows the scroll position. Lower is floatier. |
| parallax | number | 1 | Strength of the pointer parallax and idle sway. 0 turns it off. |
| maxDpr | number | 2 | Upper limit for the canvas pixel ratio (capped at 2). |
Source code is included in Pro and above