How I built a 3D scroll portfolio with Astro, React Three Fiber, GSAP and Lenis A product designer built a 3D scroll-based portfolio using Astro, React Three Fiber, Three.js, GSAP and Lenis, hosted on Cloudflare Pages, and documented the performance work needed to hold 60 fps. Key fixes included deferring WebGL scene initialization until the page load and hero intro finish, using checkVisibility to stop rendering faded or hidden canvases, decoding gallery images off the main thread with createImageBitmap, switching Lenis to frame-rate-independent lerp, and running the rope-hung About card on a fixed-step spring simulation. I'm a product designer, and my portfolio is the one project where nobody can tell me what to cut. So I built it as a scroll experience: a hero that morphs into a 3D screen, a cube that turns between case studies, an About card hanging on ropes that you can tilt, drag and stretch, and a work grid you can throw around. Live: nishar.xyz https://nishar.xyz It is built with Astro for the pages, React islands with React Three Fiber and Three.js for the 3D, GSAP ScrollTrigger, Draggable, Inertia and Lenis for motion, and Tailwind for layout. It is hosted on Cloudflare Pages. I designed it in Figma first, then built it with AI-assisted development Claude Code, Codex and Cursor so I could test how it felt in the browser instead of guessing from a prototype. Making it look right was the easy part. Making it feel right at 60 fps took much longer. These are the problems that cost me the most time. If every Three.js scene starts at page load, shader compilation and texture uploads land at exactly the moment the hero intro plays, and the intro stutters. The fix was a small gate. WebGL scenes wait until the page has loaded, the hero intro has had time to play about 2.6 seconds , and the main thread is idle: js export const whenIdle: Promise