Py’otrMuhammad Toheed Sahar

Interactive portfolio with an illustrated head that follows the cursor

A portfolio for a freelance copywriter, built around an illustrated version of her that turns its head with the pointer, a contour-line background that bends around the cursor and a small mascot that comments as you scroll.

Client
A freelance copywriter
Year
2026
Type
Websites

The problem

A copywriter's portfolio needed to stand out from template sites: a living, illustrated version of her that follows the visitor, motion that responds to the pointer, and no content on the page that was not hers.

How I built it

A static site with no runtime dependencies, built by a small Node script. The portrait is an illustration generated from her photo (video clips, cut-outs and AI in-between frames) and cut into 87 hero frames and 29 corner-mascot frames that a canvas player scrubs with the pointer. The contour-line background is drawn live in a Web Worker. I built it in phases, and every phase had a browser check that had to fail first, then pass.

What got hard

  1. A visible jump at the centre of the head turn.

    I measured frame-to-frame change instead of judging it by eye. The steps into and out of the front frame were 4.5 and 6.2 times the typical step because both turn videos blink about a second in. I re-cut the turn from a new video, skipped the blinks and filled the gaps with AI in-between frames. The largest step fell from 6.2 times to 2.0 times the typical one.

  2. The page's load event waited for every head-turn frame (10.2 s on desktop, 14.2 s on a phone, measured).

    Only the two front frames load before the load event and the rest stream in afterwards, so the page is ready at once and the head still turns.

  3. The page had to be certain it showed no one else's content before the link went anywhere.

    A 56-item audit (52 reproduced by an independent re-run, 4 plausible, 0 wrong) found 7 launch blockers, mainly reference-site content and contact routes. I replaced all of it with neutral placeholders listed in a replace-me file and added a check that compares the page with the reference text: shared 6-word runs on the visible page went from 14 to 0.

  4. On tablets the intro text ran over her hair, and the mascot's greeting overlapped the 'See the work' cue on common laptop sizes.

    I found the tablet case on the live link (69 percent of the text over the figure at 768x1024) and put the intro on a soft panel at 641 to 950px. For the laptop overlap I moved the cue above the mascot and added a check that measures the overlap, which is 0 at nine screen sizes.

The result

Deployed to Vercel on 19 October 2026 (127 page files, source and test files kept off the server); the head-turn, moving-line and mascot checks pass against the live address. The art cost about $4 in generation credits (estimated from unit prices), and her real samples and numbers were still to come at the last record.