Hover reveal.
Move across a pencil sketch of drift night at Sydney Motorsport Park and the real photo comes through where you’ve been, then slowly draws itself back in. Try it, and see how it’s built.
- Project
- Studio prototype
- Built with
- WebGL, no libraries
- Year
- 2026
- Status
- Prototype
The brief.
Give an event page a hero image people stop and play with, instead of scrolling straight past.
It had to work with any two images, run on a mid-range phone, and keep the page light.
The idea.
Show the plan first and let people uncover the real thing. A pencil sketch of the corner sits on top; the night photo is underneath.
The reveal doesn’t snap shut when you stop. It remembers your path and fades back over a couple of seconds, so it feels like wiping a fogged window.
Wipe the sketch.
Move your pointer over the frame, or drag a finger sideways on a phone. With the ghost pointer on, it draws on its own.


Your browser has WebGL switched off, so this is a simpler version: a plain circle with no trail.
Pull it apart.
Switch views and layers to see each part on its own. The mask view shows what the graphics card is actually remembering.
How it works.
- 01
Two images, one canvas
Both images load as ordinary page images, then get handed to the graphics card. One small drawing step picks sketch or photo for every pixel.
- 02
A mask that remembers
Two small textures take turns: each frame reads the last one, fades it a touch, adds the new stroke and writes to the other. That swap is the whole trail.
- 03
No gaps on quick moves
The stroke runs along the line from last frame’s pointer to this one, so a fast flick still draws an unbroken path.
- 04
Shape from noise
The edge radius is pushed in and out by noise measured around the pointer, and the noise drifts over time, so the outline never sits still.
- 05
Light on the page
No three.js or other library: the effect is under 4 KB of script once compressed. The mask runs at half resolution, and nothing draws once it scrolls off screen or the trail has faded.
- 06
Fallbacks
No WebGL means a plain CSS circle. Reduced motion turns the ghost pointer off. Without JavaScript you still see the sketch.
Where it would work.
Worth it where uncovering something is the point. Not worth it on pages people need to get through quickly.
Event pages
Track map or line drawing on top, last year’s photo underneath. A reason to stay on the hero for a few seconds.
Before and after
Venue upgrades, resurfacing, a new hospitality space. The reveal shows the change better than two photos side by side.
Sponsor reveals
A plain livery sketch that uncovers the partner’s branded car. Gives the partner a moment, not just a logo.
Campaign teasers
Blurred or sketched key art before launch day, then swap in the real image with no code change.
Photo and sketch: drift night at Sydney Motorsport Park, used in the original prototype. Rebuilt in plain WebGL from an earlier three.js version.