build-threejs-scroll-worlds
O que ela faz
Esta skill orienta um agente de IA na criação de uma experiência 3D guiada pela rolagem que permanece em um único mundo contínuo. Ela serve para equipes que criam histórias de produto, explicações, portfólios ou exposições com 3D real.
Quando usar
- ✓Quando você quer uma história 3D em que a câmera se move por um mundo único conforme as pessoas rolam.
- ✓Quando um produto ou portfólio precisa de objetos interativos em uma cena 3D contínua.
- ✓Quando um vídeo simples ou seções empilhadas não mostrariam a profundidade de que você precisa.
Link da skill
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/build-threejs-scroll-worlds/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Crie uma história de produto 3D guiada pela rolagem, em que a câmera se move ao redor de um único modelo conforme os visitantes rolam.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente cria uma única cena 3D em tempo real e mapeia a posição da rolagem da página para capítulos. Câmera, luz, materiais e texto mudam ao longo da rolagem, enquanto a cena permanece ao vivo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Build Three.js Scroll Worlds
Build one detailed real-time world and use native document scroll as its deterministic conductor. Keep the renderer, scene graph, and spatial continuity alive while camera composition, light, fog, animation, copy, and interaction focus move through authored chapters.
The mechanism is one persistent Three.js world + one normalized reversible scroll state. If removing either makes the experience collapse into stacked sections, this skill applies.
The exact Kage demo proves the quality bar; it is staging, not a mandatory subject or layout. Use its detailed anatomy only when the requested direction benefits from it: references/kage-anatomy.md.
Route the request correctly
- Use
threejsfor a single interactive scene with no scroll-authored journey. - Use
scroll-world-storytellingwhen deciding between real-time 3D, pre-rendered video, and DOM-first storytelling. - Use
scroll-scrubbed-visual-sequencefor a video or image sequence whose time is scrubbed by scroll. - Use
cinematic-scroll-storytellingfor DOM-first GSAP/Lenis choreography. - Use this skill when objects must remain truly spatial and interactive while scroll moves through several compositions in one live WebGL world.
Do not disguise a video as Three.js. The public oso95/scroll-world project, reviewed at commit 71cc36d, is a strong reference for intake, scene ledgers, budget gates, mobile-specific composition, config-driven playback, and seam QA, but its renderer is a pre-generated video chain. This skill adopts those structural strengths while retaining real geometry, materials, lighting, raycasting, and camera control.
Read the build references
Before implementing a new world, read:
- references/world-bible.md for intake, art direction, scene, material, texture, and interaction ledgers;
- references/realtime-architecture.md for the scene graph, conductor, camera, loading, interaction, and lifecycle patterns;
- references/quality-and-qa.md before optimization and final verification.
Copy references/scroll-conductor.js when a project needs a portable native-scroll conductor rather than a framework-specific implementation.
Start with the output, not the template
Determine what the world is for: a landing page, portfolio, museum chapter, product explanation, game teaser, editorial essay, data story, or another spatial experience. Do not force every request into a hero-plus-CTA layout.
Discover only what is unknown:
- the subject, audience, and ordered story beats;
- the art direction and emotional arc;
- whether the world is continuous, portal-connected, or composed as adjacent sets;
- the target devices and minimum acceptable hardware;
- how interactive the world should be beyond scrolling;
- available models, textures, brand assets, audio, and copy;
- the initial-load and total-download budget.
If the user supplied an approved reference or working scene, inspect it first and carry its real geometry, materials, textures, light ratios, camera values, and motion constants into the ledger. Do not replace measured details with adjectives.
Write the world bible before code
Define one reusable visual grammar:
- scale system and unit convention;
- silhouette language and level of stylization;
- palette and per-chapter accent progression;
- material families and wear logic;
- key, fill, rim, practical, and emissive light roles;
- fog, haze, particles, weather, and post-processing;
- typography, DOM composition, and near-plane foreground rules;
- motion grammar for camera, ambient objects, and interactions.
Every visible detail must support the same world. Random noise, unrelated texture packs, arbitrary particle effects, and one-off materials create complexity without cohesion.
Author a scene ledger
Use 4–8 chapters for most experiences. Store the full contract as data rather than scattering thresholds through CSS and the render loop:
const chapters = [
{
id: "threshold",
scrollWeight: 1.25,
copy: {
eyebrow: "Chapter 01",
title: "Enter the archive",
body: "A spatial collection revealed through motion."
},
camera: {
position: [0, 3.8, 13.5],
target: [0, 2.4, -8],
fov: 38,
mobile: { position: [0, 4.8, 18
Perguntas frequentes
É apenas um vídeo em uma página?
Não. A skill diz que um vídeo não deve ser apresentado como 3D. A cena é ao vivo e interativa.
Quando devo usar uma abordagem mais simples?
Para uma única cena 3D sem história de rolagem, a skill indica uma abordagem mais simples com Three.js.
Usa a rolagem normal da página?
Sim. A rolagem nativa da página guia a história, então a experiência continua previsível.
Detalhes
Descrição original do autor
Build rich, scroll-controlled real-time Three.js experiences as one persistent 3D world whose camera, lighting, atmosphere, materials, objects, DOM story, and interactions evolve across authored chapters. Use for 3D scrollytelling, scroll-driven WebGL worlds, camera journeys, interactive portfolios, product stories, exhibitions, explainers, game or film microsites, spatial narratives, and multi-scene websites where native scroll should travel through one continuous place. Not limited to landing pages.
repo: MengTo/Skills
Popularidade
- Estrelas no GitHub
- 7,2 mil
- Posição no ranking
- #13408
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
3d-cloth-material
7,2 milAjuda seu agente a criar tecido tramado realista no Three.js, com trama de fios, brilho suave, dobras naturais, barras e costuras.
3d-falling-leaves
7,2 milAjuda seu agente a acrescentar folhas caindo realistas a uma cena 3D, com folhas que giram, são levadas pelo vento e reaproveitadas conforme a câmera se move.
3d-four-seasons
7,2 milAjuda seu agente a acrescentar visuais de primavera, verão, outono e inverno a uma cena 3D, alterando folhagem, luz, céu e neve sem reconstruir a cena.
3d-high-poly-models
7,2 milAjuda seu agente a criar modelos 3D detalhados com formas suaves e bordas convincentes, e depois preparar versões mais leves que rodem bem na web.
Skills parecidas
angular-developer
280 milAjuda seu agente a criar código Angular e a dar conselhos sobre a estrutura do projeto. É útil para iniciar novos projetos, criar partes do código ou melhorar a performance e acessibilidade.
frontend-a11y
280 milAjuda seu agente a tornar interfaces web acessíveis para todos. Ele garante que sites e apps funcionem bem com leitores de tela e navegação por teclado.
frontend-patterns
280 milFaz seu agente aplicar padrões modernos no desenvolvimento frontend. Ele otimiza performance, gerencia estado e segue boas práticas em React e Next.js.