THREE.JS SCROLL STARTER Source ↗

FREE · MIT LICENSED · NO MODEL REQUIRED

Turn an article into a Three.js timeline.

A minimal Vite and TypeScript starter that keeps the story in HTML and uses scroll position to direct the 3D scene.

Scroll to begin ↓

01 · BUILD THE STAGE

Scene, camera, renderer.

The article remains ordinary semantic HTML. A fixed canvas sits behind it, so search engines and assistive technology still receive the complete story.

scene.add(model);
renderer.render(scene, camera);

02 · MAP THE SCROLL

One progress value directs the shot.

Normalize the page position from zero to one. Map that value to camera movement, object rotation, color, or any other property that supports the text.

camera.position.x = lerp(-1.4, 1.4, progress);

03 · SHIP A FALLBACK

The article works without WebGL.

Rendering happens only after scroll or resize. Motion is reduced when the reader asks for it, and a CSS shape remains if WebGL cannot start.

Use this template ↗