Py’otrMuhammad Toheed Sahar

Animated portfolio with a living cartoon character that follows the cursor

A portfolio for an e-commerce and Meta Ads specialist, built around a cartoon version of her made from AI video frames that turns its head with the cursor, talks in speech bubbles and moves with the scroll.

Client
An e-commerce and Meta Ads specialist
Year
2026
Type
Websites

The problem

An e-commerce and Meta Ads specialist wanted a portfolio that feels as distinctive as her work, with a character of her own and proof of results visitors can open. The starting point was a reference portfolio for motion and pacing, and the finished site had to use original art and her real numbers.

How I built it

A single-file site (HTML, CSS and vanilla JavaScript with GSAP, ScrollTrigger and Lenis). The character is not a 3D model: short AI-generated video clips on a green screen are keyed out and turned into WebP frame sequences (around 460 frames across hero, body, mini guide and action clips) that a small canvas player scrubs as the cursor moves. Her real result screenshots open in a lightbox, and a Vercel function emails the contact form through Resend.

What got hard

  1. A character built from code could not carry the look.

    The first React draft built a procedural 3D character from three.js geometry, and its own notes list the limits (no realistic skin or clothing, no lip-sync, few animation clips). The same day I switched to keyed video frames, which gives a real face and hair.

  2. The character stayed blank for 5 to 15 seconds on first load.

    The front frame loads first with a preload, then the rest stream in coarse to fine (every 8th frame, then 4th, 2nd, all) with six downloads at once, while the canvas blends the two nearest frames that have arrived. On a throttled connection (180 ms latency, 6 Mbps) the first frame went from 1.7 s to 1.1 s and the full turn from 10.5 s to 2.0 s.

  3. The head turn had to follow the cursor smoothly, without green edges or jumps.

    Turn frames are re-spaced by how far the pose has moved instead of by time, blink frames can be dropped, green spill is removed with a despill rule, and every sequence is checked on a contact sheet for fringes, holes in the hair and jumps before it ships.

  4. The owner is not technical, and the contact form needs an email service key to send mail.

    Without a key the form offers WhatsApp or copy so no enquiry is lost, and the README walks through the Resend and Vercel setup step by step. Two different WhatsApp numbers appeared in her sources, so I flagged it for her to confirm instead of guessing.

The result

Delivered on 22 October 2026 after five earlier builds since 18 October, and published on Vercel. The page shows one front frame first and streams the rest, and the whole site (HTML, 14 MB of assets) works by double-clicking index.html except sending email.