Bluehour
Scroll and the camera leaves the shore, follows the snowy track and passes through the lit glass into the lounge. Scroll back and it returns the same way. From the lounge, two buttons walk the camera to the bath and the kitchen, and Back plays each walk in reverse. The cabin, the place name and the room sizes are invented, and the footage is generated.
- html5
- css3
- javascript
- gsap
- webcodecs
- canvas
- Format
- Platform
- Engine
- Type
How It Works
Load
Enter
Walk
Reduced motion
Engineering
- 241frames in the fly-in
A frame cache in place of video seeking
Seeking a video element on every scroll event is asynchronous, so the page does not seek. It decodes each film once and keeps every frame as a compressed image, turns only the frames near the playhead into bitmaps, and releases the ones far from it, so a scroll position maps straight to a frame in either direction. A headline behind the mountains
The block word sits behind the ridge without a cut-out image. A clip-path polygon traces the ridge line of the first film frame. The page maps each point through the same cover-fit transform the canvas uses, so the clip follows the mountains at any window size, and it sets the word's vertical position from the ridge beneath it.Two clocks, one canvas
Scroll drives the first film, and a timer drives the room walks and the hotspot's fly-in. Both write to one view state, a film and a position in it, and the canvas redraws when that state changes or a frame it needs finishes loading. During a walk, wheel, touch and scroll keys are held and a style rule keeps the lounge card hidden, so the scroll timeline cannot bring it back before the camera returns.- 18 MBshipped, from 86 MB of source film
Films sized to the frame cache
The films are encoded at 1600 by 900, the size the frame cache draws at on desktop, without B-frames, so the frames decode in the order they play. The films, fonts and scripts all load from the portfolio site, and the page makes no request to another host.
More projects
View projectVision
Scroll-driven concept page for a brief-to-storyboard tool, whose hero video follows the scroll bar forward and back, drawn from frames decoded once at load so each scroll step is a canvas draw.
react
View projectVHS Shelf
VHS Shelf is a concept filmography of twelve invented films, which I designed and built as a single page. The film at the center of an endless 3D shelf of worn VHS tapes turns out of the row to show its cover, and a click opens it into a full-screen sheet of paper.
html5
View projectRice First
Rice First is a poke-bowl counter I designed and built as a single page. Rice goes in first, each topping settles at the spot you release it, a squeeze bottle lays sauce along the path you drag, and the whole counter refits itself to the window.
canvas 2d
View projectEnsemble
Ensemble is a virtual try-on concept I built on a 2D canvas. Pick a top, skirt, shoes and bag, and an image compositor masks each one onto a photo model with a soft alpha edge, giving 81 outfits from nine photos.
html5
View projectVirtualFit
VirtualFit is a spatial try-on concept built with CSS 3D transforms and the Web Animations API. Select a garment to change the outfit and run a scan effect.
html5
View projectMemory
Memory is a concept page I built in three.js, where ten thousand particles run a GPU spring simulation and reshape from a brain into a lightbulb, a globe and a pixel mark as you scroll.
three.js
View projectOrbit
Orbit is a concept space-travel page I built as one HTML file: fifty cards on a CSS 3D globe that you drag to spin and tap to bring up close, at full resolution and with nothing laid over the card.
html5
View projectSightline
Sightline is a concept wildlife archive of 21 photographs arranged on a sphere in CSS 3D, which I built as a single page. Drag the sphere to turn it, scroll to move the camera in, and open any frame into a lightbox that grows out of the card you clicked.
html5
Get in touch
I bring design judgment and hands-on engineering together, using AI-assisted workflows to move from creative intent to tested, maintainable digital experiences.
jeffkliu@gmail.com
