Ten cinematic, scroll-driven three.js worlds you can drop into any website. Every tree, temple, wave and star is generated by code: no 3D models, no image assets, no build step.
Scroll-driven 3D is everywhere on award-winning sites, but every studio builds it from scratch. This library gives you finished worlds with a camera journey already art-directed: you scroll, the camera flies, the light changes, the story unfolds. Point it at your own scroll position and it fits your page.
- One call to use:
mount(canvas, 'space', { progress })and feed it 0 → 1. - Zero assets: geometry, textures, foliage, skies and particles are all procedural, so the whole library is about 1 MB of source.
- Film-style rendering: HDR pipeline with bloom, light shafts, ambient occlusion, ACES grading, film grain, planar water reflections, aerial haze and drifting cloud shadows.
- Built to stay smooth: tiled culling, distance level-of-detail for grass and trees, cached shadow maps and a resolution that adapts to the GPU.
- No build tools: plain ES modules. Open it with any static server.
git clone https://github.com/JayDev-27/Threejs-scroll-showcases.git
cd Threejs-scroll-showcases
python3 serve.pyOpen http://localhost:4173/ for the gallery, or http://localhost:4173/showcase.html?s=jaipur for one world. Add &autoplay=60 to let the journey play by itself.
Any static server works (
npx serve,python3 -m http.server);serve.pyjust disables caching while you edit.
<canvas id="world" style="position:fixed;inset:0;width:100vw;height:100vh"></canvas>
<script type="module">
import { mount } from './lib/engine.js';
const world = await mount(document.querySelector('#world'), 'underwater', {
// 0 at the top of your story, 1 at the end. Native scroll, Lenis or GSAP ScrollTrigger all work.
progress: () => scrollY / (document.documentElement.scrollHeight - innerHeight),
});
// world.setScene('space') swap worlds in place
// world.pause() · world.play() · world.dispose()
</script>| Option | What it does |
|---|---|
progress |
() => number from 0 to 1. The camera eases toward it, so raw scroll is fine |
autoplay |
Seconds per pass when there is no progress |
damping |
How quickly the camera follows the scroll (default 3.2) |
pointer |
false turns off the pointer parallax |
quality |
Starting resolution scale, 0.5–1 (adapts automatically) |
showcase.html is a complete scrolling page built on that call, with chapter copy, per-theme typography, progress bar and chapter dots. Theme names, fonts, colours and copy live in scenes/index.js.
| File | Role |
|---|---|
lib/engine.js |
Renderer, scroll-to-camera rail, HDR post chain, planar mirror, adaptive quality, ground clearance |
lib/kit.js |
Noise, geometry builder, sky dome (sun, moon, stars, clouds, nebula, aurora), particles, water, ground and rock materials, aerial haze, caustics, tiled instancing |
lib/flora.js |
Grown trees with branching limbs and leaf, needle or blossom sprays, shrubs, grass clumps, kelp, boulders |
scenes/*.js |
One world per file: build(ctx) returns a camera rail and an update(time, progress) |
scenes/index.js |
The registry: names, fonts, colours, chapter copy |
tools/ |
Capture helpers used to make the stills and GIFs in this README |
A new world is one file in scenes/ plus one entry in scenes/index.js:
export default {
build({ scene, camera, look, env, mirror }) {
// add meshes, lights and particles to `scene`
return {
rail: [{ p: 0, pos: [0, 2, 20], look: [0, 1, 0], fov: 50 }, /* … */ { p: 1, pos: [0, 30, 60], look: [0, 0, 0] }],
floor: (x, z) => 0, // optional: the camera never sinks below this ground
update(time, progress) { }, // animate light, sky and uniforms
};
},
};Ten worlds is the beginning. The goal is the go-to open collection of scroll-driven 3D scenes for the web, and we need contributors: 3D artists, shader writers, creative developers, designers and people who just love beautiful websites.
Ways to help
- Build a new world from the roadmap below, or propose your own theme in an issue.
- Polish an existing one: better foliage, characters, lighting, more life in the crowd.
- Make it faster: profiling on mid-range laptops and phones is especially welcome.
- Integrations: React Three Fiber wrapper, Lenis and GSAP recipes, a Framer or Webflow embed.
- Docs and demos: example landing pages that use a world in context.
How to contribute
- Fork the repo and create a branch:
git checkout -b world/desert. - Run
python3 serve.pyand develop againstshowcase.html?s=<your-world>. - Keep it procedural (no model or image files) and keep it smooth (check the frame time with
await __perf(0.5)in the browser console). - Add a still and GIF to
docs/media/(seetools/capture.jsandtools/gif.sh) and open a pull request.
Not sure where to start? Open an issue with your idea and we will help you scope it.
| Theme | The scroll journey we imagine |
|---|---|
| 🏜️ Desert — Sahara dunes | Wind-carved dunes, a camel caravan at sunset, an oasis, a night sky full of stars |
| ❄️ Arctic — Polar night | Ice shelves, a frozen sea cracking, polar bears, aurora over an igloo village |
| 🏛️ Egypt — Valley of the Kings | The Nile at dawn, pyramids, torch-lit tomb corridors, hieroglyph walls |
| 🌋 Volcano — Ring of fire | Lava rivers, ash storms, cooling basalt columns, a caldera lake |
| 🌆 Steampunk — Brass city | Airships, gears the size of buildings, steam vents, a clocktower |
| 🕌 Islamic architecture — Taj and Alhambra | Mirror pools, muqarnas domes, geometric tilework, lantern-lit courtyards |
| 🐉 Chinese — Lantern festival | Mountain temples, a dragon dance, thousands of rising sky lanterns |
| 🌳 Rainforest — Amazon canopy | Waterfalls, mist, giant trees, macaws, a river at dusk |
| 🏰 Medieval — Castle siege | Village, drawbridge, banners, torch-lit great hall, battlements at night |
| 🤖 Sci-fi — Orbital station | Docking bay, hydroponic gardens, a ring habitat spinning over a planet |
| 🏙️ Architecture — Modern villa | A product-style walkthrough of a glass house for real-estate sites |
| 🚗 Automotive — Studio reveal | A procedural car on a turntable with studio lighting for product launches |
| 🍣 Food — Kitchen story | Ingredients, steam, a plated dish built step by step for restaurant sites |
| 🎵 Music — Audio-reactive stage | A concert stage that reacts to the Web Audio API |
| 💍 Luxury — Jewellery showcase | Gems, caustics and gold for high-end product pages |
| 🌸 Seasons — One valley, four seasons | The same place through spring, summer, autumn and winter as you scroll |
Library features on the list too: a React Three Fiber package, an npm release, mobile quality presets, a world editor for camera rails, and audio.
- A browser with WebGL 2 and float render targets (any current desktop browser).
- The heaviest worlds (Nature, Jaipur, Underwater) build their geometry on load, which takes a few seconds.
- Page typography loads from Google Fonts; everything inside the 3D scenes is local.
MIT. three.js is MIT licensed by the three.js authors; its licence is in lib/THREE-LICENSE.
If these worlds inspire you, star the repo and help us build the next ten.




















