Dev builds scroll-scrubbed video portfolio using frame sequences, GSAP, and Next.js 15
A developer rebuilt their personal portfolio site, prathamsharma.in, to play scroll-driven video clips without using actual video files. Instead of video, each clip was converted into WebP image frames drawn onto an HTML canvas, with GSAP's ScrollTrigger controlling playback progress deterministically. Optimizations including lazy loading via IntersectionObserver, dynamic imports for below-the-fold content, and a capped device pixel ratio reduced First Load JS from 210 kB to 162 kB and total media from 12.8 MB to 9.8 MB. Frame assets are served with a one-year immutable cache header, eliminating media requests on repeat visits. The developer concluded that scroll-scrubbed video is fundamentally a frame-sequence problem rather than a video delivery problem.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in