Living Portrait - Interactive Portfolio
← All projectsA one-page portfolio built around a portrait that reacts to the visitor. It looks like a 3D character, but there is no 3D model and no video: it is 56 still pictures of the same face, lined up to the pixel and swapped on a soft WebGL sheet.
What the portrait does
- Eyes follow the cursor in 16 directions, and it blinks
- Hover the nose, an eye or the mouth: cross-eyed, a wink, a kiss
- Tap the mouth, a cheek or the chin: tongue out, puffed cheeks, a laugh
- Grab the face and pull: the skin stretches and ripples back
- Switch the haircut, or hover the contact button for heart eyes
- Left alone, it yawns, whistles, sneezes and blows bubble gum
How it was built
- Every expression is an AI-generated edit of one approved base picture, so the head never moves between swaps
- A local script aligns the set to the tap zones and cleans the cut-outs
- The skin is a damped wave simulation on a 72 by 72 mesh, stepped at a fixed 240 Hz so it never tears
- Only one picture is on screen at a time, with a 70 ms crossfade
The rest of the page
- A marquee of live sites that slides with the scroll
- Character-by-character text reveal, stacking project cards with a lightbox
- One nav that gathers into a glass pill as you scroll
Overview
Living Portrait is a one-page portfolio built around a portrait of me that reacts to the visitor. It looks like a 3D character, but there is no 3D model and no video: it is 56 still pictures of the same face, aligned to the pixel and swapped on a soft WebGL sheet.
The problem
A portfolio has a few seconds to be remembered. The aim was a face that feels alive and playful, without the weight of a 3D model or video, and that never jumps or tears while it reacts.
What I built
- Eyes that follow the cursor in 16 directions, plus blinking
- Hover and tap zones: cross-eyed, a wink, a kiss, tongue out, puffed cheeks, a laugh
- Grab-and-pull skin that stretches and ripples back, from a damped wave simulation on a 72 by 72 mesh stepped at a fixed 240 Hz
- Idle moments: it yawns, whistles, sneezes and blows bubble gum
- A haircut switch and heart eyes on the contact button
- A scroll-linked marquee of live sites, character-by-character text reveal and stacking project cards with a lightbox
Architecture
A Next.js and TypeScript page on Netlify. A WebGL sheet shows one aligned picture at a time with a short crossfade, while GSAP and Lenis handle the scroll. The picture set was prepared offline with an image model and a local alignment script.
A high-level view. Endpoints, hosts and security details are left out on purpose.
Key decisions
- 01
Still pictures, not a 3D model
Why: Every expression is an edit of one approved base picture, so the head never moves between swaps and the page stays light.
Trade-off: Each new expression has to be generated and aligned by hand.
- 02
Fixed 240 Hz simulation step
Why: Stepping the skin at a fixed rate keeps it stable on any screen refresh, so it never tears when pulled hard.
Trade-off: More simulation steps per frame on slow machines.
- 03
One picture on screen at a time
Why: A 70 ms crossfade between single frames keeps memory and draw cost low.
Trade-off: Very fast cursor moves can show a brief blend.
Links
The source code is private. I'm happy to walk you through the code and design in a call.