Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultGallery & imagesDepth Fly-Through Hero
Cloth Bend GalleryBrowse all 182Dither Reveal Cursor
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Depth Fly-Through Hero

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • SplitText
  • CustomEase

Setup

npm i gsapregisterPlugin(SplitText, CustomEase)

More like this

  • Hero
  • Velocity
  • Split text
  • Infinite loop
  • 3D

Features.

  • Images fly out of the deep towards you on their own staggered loops, forever
  • Each one fades in far away, holds, and fades out just before it reaches you
  • The field keeps clear of the centred copy: cards fade as their projected edge comes near it, and respawn away from it
  • The whole field glides after the cursor on mouse devices
  • Scrolling fast speeds the flight up (to 3.5× by default), then it eases back to its own pace
  • The headline rises line by line through masks when the font is ready
  • Fewer, smaller cards on phones and touch screens
  • Pauses while the hero is off screen
  • Respects prefers-reduced-motion: the cards sit still, clear of the copy, and the copy appears at once
  • GSAP ticker, CSS 3D perspective, SplitText and CustomEase

How to get it right.

Mix sizes and shapes

Each card keeps its own image's aspect and takes one of seven width classes (dph_card--tall-sm to dph_card--wide-lg). A mix of portrait, square and landscape at different widths is what makes it read as depth.

Use around two dozen cards

Cards start evenly spread through the loop, and only a few are near enough to see at once, so about twenty-four gives a full field on desktop. Twelve images shown twice is enough (the default does this: the second pass sits half a loop behind the first and is desktop-only). Fewer leaves gaps; many more crowds the copy zone.

Keep the copy compact

The clear zone is the copy's rect plus 120px, capped at 42% of the width and 35% of the height. A short headline leaves room for the field. To add a sentence under it, put <p class="dph_text" data-dph-text> after the title (React: text); its lines rise in after the headline's.

Set width and height on every image

The script reads each card's size to keep it clear of the copy. Without width/height on the <img>, cards measure 0 until the image loads.

Variations.

  • Slow drift — data-au-cycle="18"
  • Calm scroll — data-au-boost="1": scrolling doesn't change the speed
  • Still field — data-au-pan="0": no cursor glide
  • Deeper — perspective: 50em on .dph_hero for a stronger rush near the viewer
  • Your colours — override --dph-bg, --dph-fg and --dph-muted

Where it fits.

  • Portfolio and studio heroes — the work streaming past one line about it
  • Memory and archive pages — photos drifting out of the past
  • Event and festival sites — a field of moments around the date
  • Launch pages — product shots flying in around a statement

Frequently asked.

That's the clear zone. In screen space, any card overlapping the copy plus a margin fades to 0, and comes back over an 80px band as it moves away.

No. The boost reads how far window.scrollY moved each frame, so native scroll and smooth scrollers both work.

The stage is aria-hidden and the images have empty alt, since they're decoration around the headline. The headline is a real <h1>. Under reduced motion nothing moves.

One ticker callback writes a transform and an opacity per visible card each frame, and stops while the hero is off screen. Keep the images around 720px wide.

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Draggable Brick Grid

Drag