Nathan Hodgson
Library
Setup guidesIntermediate1 min readUpdated

Build an Interactive 3D Landing Page With GPT-6 Astra and Claude Code

Chain GPT-6 Astra's art direction with Claude Code to build a scroll and pointer-reactive WebGL landing page. No Three.js experience needed.

Two models, one page. GPT-6 Astra writes the art direction. Claude Code turns that into a real WebGL scene that reacts to your scroll and your mouse. You don't need to know Three.js to follow this.

Step 1: get the art direction out of GPT-6 Astra

Open GPT-6 Astra and paste this. Swap the underwater theme for whatever look you want.

Prompt
Write a full art direction spec for a bioluminescent underwater landing page. Cover the colour palette, lighting, fog, camera position, and how the scene should move. Be specific enough for a developer to build it.

Step 2: install Claude Code

Install Claude Code, then open it in an empty project folder. Paste the spec from step 1 straight into the chat so Claude has the full look before it writes anything.

Step 3: build the scene

Prompt
Build this scene as a React Three Fiber page using three and @react-three/fiber. Set up the lighting, fog and camera exactly as described in the spec above.

If you'd rather install the packages yourself first, this is the command from the React Three Fiber docs.

Terminal
npm install three @types/three @react-three/fiber

Step 4: make it react to scroll and pointer

Prompt
Make the lighting follow the mouse pointer and move the camera deeper as the user scrolls. Keep it responsive on mobile and drop the effect quality on small screens so it stays smooth.

Step 5: polish

Ask Claude Code to add a bloom pass for the glow, and to smooth the scrolling. The usual picks are the postprocessing bloom effect, GSAP ScrollTrigger for scroll driven motion, and Lenis for smooth scroll.

Further reading

GPT-6 Astra

Claude Code

Three.js

React Three Fiber

GSAP

Lenis