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
VaultBackgrounds3D Image Sphere
Ruler Card CarouselBrowse all 182Bulging Strip Slider
  • 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

3D Image Sphere

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

  • three

Setup

npm i gsapregisterPlugin(three)

More like this

  • Hero
  • Card
  • Infinite loop
  • 3D
  • Canvas
  • WebGL

Features.

  • Picture cards line the inside of three nested spheres round your heading and drift sideways, forever
  • Every shell moves at the same speed, so the far ones turn more slowly and the field reads as deep
  • Cards bow to their sphere, ripple gently and bob, each one shaped to its picture
  • Scrolling pushes the flow along, up or down, and it eases back to its own pace
  • The pointer pans each picture inside its card and tilts the view (mouse and pen only)
  • A lens bulges the frame and splits colour toward the edges
  • Cards thin out round the heading, so it always reads
  • The back shell settles in first, then the middle, then the front; the heading fades in with them
  • Fades out as the hero scrolls away, and pauses off screen and in background tabs
  • Without WebGL, or if the context is lost, it's a finished hero: the heading on the page colour. The cards come back when the context does
  • Respects prefers-reduced-motion: one still frame, no flow, pointer or intro

How to get it right.

Load three.js first

The script reads window.THREE. Load it before code.js. Without it, the hero shows its heading with no cards. No GSAP needed.

Pick pictures that read small

Cards are small and the back shell is faint, so bold, simple pictures work best. Any shape works: each card takes its picture's proportions (clamped between 3:4 and 17:10). Around 800px on the long side is plenty. Ten or so gives the deck enough variety; with fewer they repeat more often.

Keep the heading short

The cards clear an oval round .sfh_copy, sized from the block itself. Two lines is the sweet spot. A longer block clears a bigger hole; turn data-au-clear down if it empties the field.

A sentence or button is optional

It ships with the heading alone. Put a <p> or a link inside .sfh_copy and it fades in with the heading, and the clearing grows to fit. Give them your own sfh_ classes and styles.

Tune the pace

data-au-lap sets how long the front shell takes to make a full pass; the others follow at the same world speed. data-au-scroll sets how much page scrolling pushes it. Set it to 0 if the hero sits somewhere scrolling past it shouldn't stir it.

Retheme with variables

--sfh-bg is the page and also fills the colour split, so keep it equal to whatever is behind the hero. --sfh-fg is the heading and --sfh-shade the card shadows (a touch darker than the page).

Variations.

  • Drift — the default: a 60s lap, lens 1, split 0.07
  • Calm — data-au-lap="100", data-au-scroll="0", data-au-split="0" for a quiet backdrop
  • Flat — data-au-lens="0": no bulge, no split, a straight view into the spheres
  • Full field — data-au-clear="0" with no heading, for a pure picture backdrop

Where it fits.

  • Home page hero for an architect, photographer or studio with a deep image library
  • Collection intros — products, places or projects drifting behind one line
  • Portfolio landing — every project in view at once, without a grid
  • Event pages — venues, speakers or work on show

Frequently asked.

The canvas couldn't start. Check that three.js loads before the script (the console says [oomph] Sphere Field: three.js not found after 10 seconds) and that the browser has WebGL.

A card appears once its picture loads. If a few stay missing, those pictures can't be read: check the data-src paths, and serve cross-origin pictures with CORS.

That's the lens. Lower data-au-lens for less bulge, or set data-au-split="0" to keep the bulge without the colour split.

The intro plays once per init. Call window.au.SphereField.refresh(el) to play it again.

It's one WebGL scene of up to about a hundred small quads plus one fullscreen pass. It only runs while on screen, and drops its resolution and the colour split on slow devices. Keep one per page.

Related components.

NewPro

Squashy Bead Rods

Cursor

Pro

Card Tunnel Hero

Load

Pro

Cursor Smoke

Cursor