Mina Sameh — Software Engineer (React Native, TypeScript, AI)

Mina Sameh

Creative Coding with Three.js

How I use Three.js and GSAP to bring personality to portfolio sites and agency projects.

·

Web development doesn't have to be boring boxes and flat layouts. Three.js opens up a dimension of creative expression that sets projects apart.

For Creative Twinkles' agency site, I built an interactive 3D scene that responded to scroll position and mouse movement. The key was keeping it performant:

  • Use instanced meshes for repeated geometry
  • LOD (Level of Detail) for complex models
  • requestAnimationFrame with delta time, not setInterval
  • Dispose geometries and materials on unmount

GSAP's ScrollTrigger pairs beautifully with Three.js. Pin the canvas, then animate camera position and material properties based on scroll progress.

The secret sauce: subtle is better. A gentle parallax, a soft glow, a mesh that breathes — these create atmosphere without screaming "look at me."

Tools I use:

  • Three.js for 3D rendering
  • GSAP + ScrollTrigger for scroll-driven animation
  • Leva for debug controls during development
  • R3F (React Three Fiber) for React integration