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 & images3D Spiral Gallery
Gooey Stacked ToastsBrowse all 182Arrow Swap Button
  • 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 Spiral Gallery

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
  • Draggable
  • three

Setup

npm i gsapregisterPlugin(Draggable, three)

More like this

  • Card
  • Carousel
  • Infinite loop
  • 3D
  • Draggable
  • Canvas
  • WebGL

Features.

  • Picture cards wound round a spiral stair that climbs and turns at the same time
  • Never ends: a card that passes the top drops back to the bottom out of frame
  • Creeps upwards on its own; drag sideways to spin it and the throw coasts out
  • The mouse wheel over the stage gives it a push
  • Cards light up from the page colour one after another, top first, as their pictures load
  • Draws only when something moves, and not at all while it's off screen
  • Shows a plain sideways row of the pictures until the canvas runs, and without WebGL
  • Respects prefers-reduced-motion: no drift or wheel push, cards appear without the fade; drag still works

How to get it right.

Load GSAP, Draggable and three.js first

The script reads window.gsap, window.Draggable and window.THREE. Load them before code.js. Without them the row of pictures stays and the console says why after 10 seconds.

Use 4:3 pictures

Each card is 4:3 and the shader crops pictures to fit from the centre. Pre-crop anything with an off-centre subject. Around 560 × 420 is plenty: even the front cards are small on screen.

Give it six or more pictures

The pictures repeat to fill every card (36 by default). With twelve, each picture shows three times; with only a few, neighbours start to repeat.

Shape the stair

data-au-turns sets how many times it winds round from bottom to top, data-au-radius how wide it is (the camera backs off for big radii), and data-au-cards how many cards share the climb. More turns or fewer cards spread the cards out.

Retheme with variables

--hlx-bg is the page and the colour each card fades in from (read once at init). --hlx-fg, --hlx-muted and --hlx-accent colour the optional heading, sentence, hint and hint dot.

Adding a heading or hint

It ships as pictures only. To add copy, put .hlx_head (.hlx_title, .hlx_text) and .hlx_hint after .hlx_scene, or pass title, text and hint in React.

Variations.

  • Winding stair — the default: 36 cards, 3.8 turns, radius 2.3
  • Tight coil — data-au-turns="5.5" and data-au-radius="1.6" for a narrow tower
  • Open spiral — data-au-turns="2", data-au-radius="3", data-au-cards="24"
  • Hold still — data-au-drift="0"; it only moves when dragged or wheeled
  • Light page — --hlx-bg: #fffcf2; --hlx-fg: #252422; --hlx-muted: #555

Where it fits.

  • Photo archives — a whole series on one screen without a grid
  • Portfolio intros — a playful first screen before the case studies
  • Collections and drops — every piece in a collection in one turning view
  • Event recaps — the night's photos, round and round

Frequently asked.

That's the fallback. three.js isn't loaded, WebGL isn't available, or the script hasn't run yet.

A card stays hidden until its picture decodes. A broken URL leaves the cards that use it hidden; check the network tab.

No. Drags start anywhere on the stage and the cards are drawn on a canvas. Add an optional heading and put links there instead.

Yes. The wheel listener is passive: it adds spin but doesn't stop the page from scrolling.

Yes. Every instance is independent, and one off screen doesn't draw.

Related components.

Pro

File Drawer Cards

Hover

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load