Vortex portfolio hero
An ad studio portfolio hero where fourteen campaign posters spiral around a point of light and any card peels out into its case study.
Use it with Claude or any AI tool. Copy the prompt and paste it in. The link inside gives the AI the whole page as Markdown.
Live preview of the result built from this prompt. Click to pause.
Overview
A single-file 3D portfolio hero for an ad studio, built with Three.js and GSAP. Fourteen curved campaign posters orbit a tinted point of light in an endless spiral. Scrolling travels through them and snaps each project to the front, while a rolling counter, a big project title and a tick bar keep track. Hovering shows a brand pill; clicking a card peels it out, flattens it into a case-study view and staggers in stats, role and channels with previous and next. It also has an Index panel, a Contact popover, light and dark themes, a “Start a project” ending and a phone layout. The demo studio is Halcyon with example brands and free Unsplash photos; swap in your own brands in P and photos in IMAGES.
Build it step by step
Sign in to tick steps off-
1
Draw the poster cards and the spiral
Set up one HTML file with Three.js, paint every campaign as a poster on a canvas, and lay fourteen curved cards on a spiral that sinks toward a point of light.
Create a single-file HTML portfolio hero for an ad studio called "Halcyon". Load Three.js 0.160 and GSAP 3.12 as ES modules from jsDelivr through an import map; nothing else. Full-screen fixed WebGL canvas on a near-black page. Keep a P array of 14 projects (brand, campaign, channels, year, frame colour, ink colour, layout, two-line headline, description, two stats, role, channels) and an IMAGES array of 14 photo URLs. Paint each project on a 1024x732 canvas as an ad poster: a solid frame in the brand colour, a heavy condensed headline (Bricolage Grotesque 800), a round brand pill and the photo with rounded corners, in three layouts: headline on top, a sideways text strip on the left, or text over a full photo. Use the canvas as the texture of a curved plane (bend the edges toward the viewer in the vertex shader, round the corners in the fragment shader). Place card i on a spiral: angle = start + s * 0.86, depth = -(8.6 + s * 2.1), radius 3.9, each card turned slightly toward the axis and rolled by 0.2 * cos(angle).
Done when Fourteen curved poster cards sit on a spiral around the centre, getting smaller toward the back.
-
2
Scroll through the vortex
Map scroll to the spiral so each step brings the next card to the front, loop past the last card, and keep the counter, title, ticks and light in sync.
Make the page tall enough for one scroll step (62% of the viewport, min 420px) per project. Turn scroll into a target position, ease the live position toward it every frame, and snap to the nearest whole card 180ms after scrolling stops. For card i use s = (i - position) mod 14; a card that passes the camera grows, slides outward and fades, then comes back at the far end, so the spiral never runs out. Fade and darken cards with depth, add a little mipmap blur to far ones, and let the whole spiral drift slowly with time. Bottom left: a rolling 01 / 14 counter, a huge condensed project name with a coloured dot (blur it out and back in on change) and a "campaign · channels · year" line. Bottom right: 14 thin ticks with the active one tall and coloured, plus a progress line. Tint the central light and its rays with the active project colour.
Done when Each scroll step brings the next card to the front, and the counter, title, ticks and light colour follow it.
-
3
Peel a card into its case study
Add the hover pill, then fly the clicked card out of the spiral into a flat case-study view with details on the right and previous and next.
Raycast the cards on pointer move. On hover, lift the card slightly and show a white pill next to the cursor with a ring icon, the brand name and a faded "View". On click, lock scrolling, dim the spiral with a full-screen plane attached to the camera, and fly the card from its spiral pose to a pose that fills a placeholder box on the left of the screen: lerp position, slerp rotation, unbend it, and bump a peel uniform that lifts one corner on the way. Draw it above the dimmer. On the right, stagger in: a coloured dot with "Case 03 / 14 · 2026", the brand as a big title, the campaign, a short description, two stats, Role and Channels rows, a "Full case study" pill and round previous/next buttons. Previous/next sends the current card back to its live spiral pose while the next one flies in. A round X (and Escape) closes it and the spiral moves to the opened project.
Done when Clicking any card flies it into the case view; previous, next and close all animate back into the spiral.
-
4
Background, ending and the phone version
Match the soft charcoal background and light, add the Index, Contact and theme controls, finish with a Start a project ending, and fit it all on a phone.
Make the renderer transparent and put a radial charcoal glow (#1d1b1a to #080808) behind it, centred on the projected light, with fine animated SVG grain on top. The light is a small white core, a tinted halo, 12 long faint rays plus 8 short star spikes that slowly rotate, and three soft rings at 4% opacity. Top bar: logo with "Independent ad studio" on the left; a round moon/sun theme button, an "Index 14" pill and a "Contact" pill on the right. Index opens a left glass panel listing all 14 projects (number, colour dot, brand, campaign, year) that scroll to that card. Contact opens a small popover with a studio line, the email with a copy button and three social links. Light theme switches to warm grey. Add one extra scroll step after the last card: the spiral sinks into a brighter light and the title becomes "Start a project." with email and "Back to 01" buttons. Under 860px: wider field of view, smaller narrower spiral, the case card stacked over a scrolling detail panel.
Done when Index, Contact and both themes work, the end shows Start a project, and on a phone you can scroll the spiral and open a case.
Files and links
-
vortex-portfolio-hero.html 53 KB The finished file. Open it in a browser. Edit brands and copy in P and the 14 photo URLs in IMAGES.
What people built
Show yoursNobody has shared a build yet. Yours could be the first.
Show what you built
Built this plan? Sign in to share your demo video, live app and screenshots.