Depth Field

An emerging image cloud with circular rotation, pronounced perspective growth, a shared entrance pulse and fading scroll impulses.

Follow your curiosity.

Controls

Motion

Preset
Image origin
Drift speed
Entry speed
Entry duration (s)
Entry delay (s)
Scroll acceleration
Rotation speed (°/s)
Rotation direction
Spread
Depth
Image count
Pause motion

Appearance

Text alignment
Image size
Image border radius (px)
Background color
Text color
Font family
Font size (CSS)

Content

Title
Subtitle
Primary button text
Primary button link
Secondary button text
Secondary button link
Image 1
Image 2
Image 3
Image 4
Image 5
Image 6

Properties

30 properties
PropertyTypeDefaultDescription
imagesreadonly string[]RequiredImage sources repeated through the depth field. Empty lists leave a text-only hero.
speednumber5Continuous forward travel speed through the cloud, in depth units per second.
entryBurstnumber70Peak forward speed of the entrance pulse. Rotation shares the same speed multiplier; both ease back to their normal speeds. Changing it replays the catalog preview.
entryDurationnumber2.8Duration of the entrance pulse from an empty image field. The first quarter accelerates; the remaining three quarters ease back into drift.
entryDelaynumber0Wait before the entrance starts. The heading and buttons are already visible while the image field stays empty. Only time on screen counts, and it has no effect when Entry duration is 0. Changing it replays the catalog preview.
scrollBoostnumber50Strength of a brief forward impulse while scrolling in either direction. Acceleration ramps up smoothly and fades after scrolling stops.
rotationSpeednumber11Circular angular speed in degrees per second. A uniform screen scale keeps the orbit circular at every viewport shape. The entrance shares the forward speed multiplier.
rotationDirectionselectcounterclockwiseChoose counterclockwise or clockwise rotation.
spreadnumber12Distance from the center of the image field. Larger values leave more space around the text.
depthnumber96Distance across which images approach and fade in. Source images are assigned independently of spatial and arrival order, so repeated images do not progress as a spiral.
countnumber36Number of image planes. The supplied images repeat through the field.
imageSizenumber3.8Base size of each image’s longest edge. Approaching images grow more strongly while moving outward from the vanishing point and beyond the viewport.
imageRadiusnumber0Corner radius on the fixed base image box; scales with the image. Zero keeps sharp corners.
textAlignstringcenterCustomize the hero text and appearance.
titlestringFollow your curiosity.Customize the hero text and appearance.
subtitlestringEmptyCustomize the hero text and appearance.
buttonTextstringExplore componentsCall-to-action label. Empty hides the button.
buttonHrefstring/componentsDestination URL or section anchor.
secondaryButtonTextstringLearn moreCall-to-action label. Empty hides the button.
secondaryButtonHrefstring#controlsDestination URL or section anchor.
fontFamilystring'Plus Jakarta Sans', 'Inter Variable', sans-serifHeading font stack. Load Plus Jakarta Sans in the host project to match the demo.
backgroundstring#ffffffCustomize the hero text and appearance.
colorstring#242120Customize the hero text and appearance.
fontSizestringclamp(2rem, 5.5cqw, 5rem)Customize the hero text and appearance.
imageOriginDepthFieldOrigincenterNine vanishing points: center, edge midpoints and corners. Changing it preserves the current animation.
showTextbooleantrueShow or hide the title, optional subtitle and buttons without stopping the image field.
pausedbooleanfalseFreeze the field. Reduced-motion preferences automatically show a static composition.
heightnumber | string600Section height in pixels or a CSS length, such as 100svh.
refDepthFieldHandle—replay() restarts the image entrance while the heading and buttons stay visible.
className / stylestring / CSSProperties—Additional root styling.

Usage

Usage
import { DepthField } from './components/depth-field';

// Replace these paths with images from your project.
const images = [
  "/assets/hero-artwork/01.webp?v=topographic-first-frame-v2",
  "/assets/hero-artwork/02.webp",
  "/assets/hero-artwork/03.webp?v=pro",
  "/assets/hero-artwork/04.webp?v=orb-idle-updated",
  "/assets/hero-artwork/fractal-glass.webp",
  "/assets/hero-artwork/05.webp?v=orbit-tunnel-poster-v3"
];

export function Example() {
  return <DepthField
    images={images}
    textAlign={"center"}
    title={"Follow your\ncuriosity."}
    subtitle={""}
    buttonText={"Explore components"}
    buttonHref={"/components"}
    secondaryButtonText={"Learn more"}
    secondaryButtonHref={"#controls"}
    fontFamily={"'Plus Jakarta Sans', 'Inter Variable', sans-serif"}
    background={"#ffffff"}
    color={"#242120"}
    fontSize={"clamp(2rem, 5.5cqw, 5rem)"}
    speed={5}
    entryBurst={70}
    entryDuration={2.8}
    entryDelay={0}
    scrollBoost={50}
    rotationSpeed={11}
    rotationDirection={"counterclockwise"}
    spread={12}
    depth={96}
    count={36}
    imageSize={3.8}
    imageRadius={0}
    paused={false}
    showText={true}
    imageOrigin={"center"}
    height="100svh"
  />;
}

Free for personal and commercial projects. Redistributing components, kits or templates requires permission. Read the license.