Reusable pipeline for building character-led animated websites
A written-down build recipe, nine reference documents and twelve scripts, that turns an AI-generated character into a site where she follows the cursor, talks and moves with the scroll.
The problem
Every character-led site repeated the same slow, error-prone steps: generate clips, key out the green screen, cut frames, write a player, test touch and cursor behaviour, deploy. Doing that from scratch each time wastes days and repeats old mistakes.
How I built it
I wrote the build order and quality bar down once, with nine reference documents (character pipeline, canvas seek player, motion recipes, interactions, scene hero, full site, living clips, design system, testing and deploy) and twelve scripts for keying and despill, outline profiling, building, idle loops, depth maps, contact sheets, hero clips, talking figures and a generation runner.
What got hard
- Keying hundreds of large frames in memory got the process killed.
The scripts key once, save each frame to disk and stream through it, which keeps memory flat.
- Double-tap and double-click detection felt unreliable and could not be tested honestly in a headless browser.
Taps are timed from the event's own timestamp rather than when the handler runs, and the tests send real touch events over the DevTools protocol with explicit timestamps 150 ms apart.
- Blur effects and reveals caused repaint cost and invisible content.
Blurs are baked into a small image instead of a live full-screen filter, and a scroll sweep on the reveal observer makes sure elements skipped by a fast jump never stay hidden.
- Turn clips looked jerky and green fringes showed on hair.
Frames are re-spaced by pose progress, blink frames are dropped, the front pose sits in the middle, and despill rules are set per edge type.
The result
A nine-document, twelve-script skill distilled from the portfolio and agency builds above, so the next site starts from a tested build order and a quality bar instead of a blank page.
The ← and → keys turn the page too.