Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Threejs Scenes

ASecurity

Direct 3D website scenes with Three.js: hero scenes, scroll-driven cameras, product stages, and art direction for the web. Use for website 3D sections and scenes.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgoperformance

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill threejs-scenes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Threejs Scenes?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Threejs Scenes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-threejs-scenes/badge)](https://www.skillsdirectory.com/skills/aicodedecode-threejs-scenes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: threejs-scenes
description: Direct 3D website scenes with Three.js: hero scenes, scroll-driven cameras, product stages, and art direction for the web. Use for website 3D sections and scenes.
category: web-development
---

# Three.js Scenes

A website-focused companion to Three.js fundamentals: hero scenes, scroll-driven cameras, product showcase stages, lighting for the web, and the art-direction decisions that make 3D sections feel intentional rather than tech-demo.

## Overview

Website 3D serves the page, not the other way around: a hero that loads fast and degrades gracefully, a product stage that invites interaction, scroll choreography that guides rather than distracts. This skill covers **scene design for websites** — composition, pacing, performance budgets per section, and fallbacks — assuming Three.js mechanics from threejs-pro.

## When to use

- 3D hero sections on marketing sites.
- Scroll-driven 3D storytelling (camera moves with scroll).
- Product showcase stages (rotate, zoom, variant switching).
- Deciding how much 3D a page can afford.

## Core concepts

- **One scene per section.** Isolate 3D sections as independent scenes/canvases — a failing or heavy hero shouldn't break the product stage. Lazy-init canvases near the viewport (IntersectionObserver).
- **Scroll choreography.** Map scroll progress (0→1 across the section) to camera path keyframes or object transforms; smooth with lerped values. Keep camera moves slow and purposeful — fast 3D scroll motion causes discomfort.
- **Product stage.** Studio lighting (key/fill/rim + environment), turntable or OrbitControls with damping and limits (min/max polar angle, zoom bounds), variant switching (swap materials, not models).
- **Hero composition.** 3D as backdrop or sidekick to headline copy — never competing with it. Generous negative space, slow ambient motion, pause when off-screen.
- **Section budgets.** Each 3D section gets a budget: e.g., hero ≤ 3MB assets, ≤ 100 draw calls, 60fps on a 3-year-old phone. Sum across sections for the page total.
- **Fallbacks.** `prefers-reduced-motion` → static frame or image; no WebGL → poster image; slow device → reduced pixel ratio / simplified scene. The page must work without 3D.

## Practical workflow

**1. Plan the section.**
- Purpose in one sentence (showcase product / set mood / explain concept).
- Storyboard: 3–5 keyframes of the scroll or interaction journey.
- Budget: assets MB, draw calls, target devices.

**2. Hero scene.**
```js
// lazy init when near viewport
const io = new IntersectionObserver(([e]) => {
  if (e.isIntersecting) { initHero(); io.disconnect(); }
}, { rootMargin: '400px' });
```
Ambient animation (slow rotation, floating particles), camera mostly fixed with subtle parallax on mouse (lerped, ±few degrees). Pause rendering when off-screen (`renderer.setAnimationLoop(null)` + resume).

**3. Scroll-driven section.**
```js
// progress from scroll position within the section
const progress = clamp((scrollY - sectionTop) / (sectionHeight - viewportH), 0, 1);
const smooth = lerp(current, progress, 0.08); // per frame
camera.position.lerpVectors(keyA, keyB, easeInOut(smooth));
object.rotation.y = smooth * Math.PI * 2;
```
Pin the section (position: sticky) while the canvas animates through keyframes — the standard scrollytelling pattern.

**4. Product stage.**
- OrbitControls: `enablePan = false`, polar limits, zoom limits, damping.
- Variant switching: preloaded materials, crossfade or instant swap; update UI state.
- Hotspots: HTML overlays positioned via `project()` each frame (easier than in-3D text).

**5. Performance per section.** Cap pixel ratio (1.5–2), pause off-screen loops, dispose on section unmount (SPA), total page draw calls under budget.

## Common pitfalls

- **3D competing with content.** Spinning chaos behind headline copy = unreadable. 3D supports the message; restraint is a feature.
- **No off-screen pausing.** Five 3D sections all rendering = dead battery. Pause loops outside the viewport.
- **Scroll-jacking the camera.** Tying camera 1:1 to raw scroll = nauseating. Smooth (lerp), ease, keep ranges modest.
- **Missing reduced-motion.** Auto-rotating, parallaxing scenes must respect `prefers-reduced-motion` — render a static composed frame instead.
- **Heavy heroes.** A 20MB hero that loads after the user scrolled past. Budget, compress, lazy-init, show poster first.
- **Unbounded controls.** OrbitControls without limits lets users get lost inside geometry. Constrain polar angle, distance, and target.
- **HTML/3D misalignment.** Hotspots or overlays drifting from 3D positions on resize — recompute projections on resize and per frame.
- **One giant scene.** Everything in one scene = one failure mode, one perf profile. Section isolation is resilience.
- **Forgetting mobile.** Touch controls, smaller screens, weaker GPUs — test the 3D sections on a mid-range phone, not just a desktop.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →