/studio:orbiting-sphere-herofrom studio
Build a 3D orbiting-sphere hero page — an invisible Three.js sphere with flat image cards that orbit a centered logo, always facing the viewer (billboarding), with drag-to-rotate, hover-to-pop, and a soft click-to-open detail page that reverses on "back". Includes a dark/light theme toggle and a responsive mobile layout. USE THIS SKILL whenever the user wants an orbiting/rotating sphere of images, a "celestial mobile" or floating-photos hero, a 3D portfolio/landing hero where clicking an image opens a project/detail page, a Three.js image gallery sphere, or an Awwwards-style cinematic 3D hero — even if they don't name Three.js. A complete, working template is bundled; copy and customize it rather than rebuilding the orbit math from scratch.
Ships in studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A single-page, dependency-light hero where photos are mounted on flat cards that orbit an invisible sphere around a centered wordmark. The feel is a quiet, celestial mobile: images drift in space, always facing you, scaling and fading with depth. Drag spins the sphere with momentum; hovering a card pops it forward; clicking a card plays a soft transition into a two-column detail page, and a "back" control reverses it. A dark/light toggle and a mobile layout are built in.
The reliable path is the bundled template, not a from-scratch rebuild. The
orbit distribution, billboarding, depth sorting, drag momentum, and the
two-phase open/close transition are fiddly to get right. assets/sphere-hero.html
is a complete, proven build. Copy it, then change the content, images, and brand.
Only rebuild from scratch if the user explicitly needs a different framework (see
references/build-from-scratch.md).
index.html:
cp <skill>/assets/sphere-hero.html index.html
mkdir -p Visuals
Visuals/ named 01.png, 02.png, … (square images look
best — see "Images" below).file:// (ES modules + importmap require
a server):
python3 -m http.server 5180 # then open http://localhost:5180
Read this before editing the JavaScript — it explains why the pieces exist.
<canvas id="scene"> (z-index 10) holds the
WebGL sphere; the renderer clears transparent so the CSS --bg shows through
(this is what makes the theme toggle recolor the backdrop for free). The
#project detail page sits above at z-index 15.PlaneGeometry meshes positioned on a sphere surface via a
Fibonacci distribution so they spread evenly instead of clustering at the
poles.enterProject). Two phases: (1) the other cards and the
center logo fade out while the clicked card freezes; (2) that card hands off to
a DOM <img> that flies to the right column and scales up, then the left-column
text cascades in. returnToHero reverses it exactly.drawLogoText() and drawShadow() repaint those canvases
on theme change and set needsUpdate = true. If you change the logo text or
theme colors, edit those two functions.Almost everything you change lives in clearly marked spots. Search for these
anchors in index.html rather than relying on line numbers (they shift):
const SERVICES (the detail pages)This array drives what opens when a card is clicked. One entry per image, in orbit order. Each entry:
{ title: 'AI Receptionist', // detail-page H1 + card project name
eyebrow: 'Always On', // small uppercase label
p1: 'First paragraph…', // two body paragraphs
p2: 'Second paragraph…' }
PROJECT_NAMES is derived from it automatically. Keep the array length equal to
the number of images.
const IMAGES + the Visuals/ folderThe default maps twelve files: Visuals/01.png … 12.png. To use a different
count, edit the IMAGES array (the ['01','02',…] list). Use square images
— the cards are 1:1 (CARD_W === CARD_H) so square art is shown uncropped. Other
aspect ratios get center-cropped by object-fit: cover; if you need that, change
CARD_W/CARD_H to your ratio and the project-image rect in computeImageRect.
<title> in <head>.nav-brand (desktop) and .nav-brand-mobile text in the nav markupdrawLogoText() → ctx.fillText('DE:N', …):root token blocks:root, :root[data-theme="dark"] is the dark palette; :root[data-theme="light"]
is the light one. Tokens: --bg --surface --nav-text --divider --logo --accent --body-text. The light logo/shadow colors are also hardcoded in drawLogoText()
and drawShadow() — keep them in sync if you change the palette. Swap the Google
Fonts <link> and the --font*/font-family rules to change typefaces.
// Config blockCARD_W, CARD_H — card size (keep equal for square art)SPHERE_RADIUS_FRAC (default 0.40) — orbit radius as a fraction of the
smaller viewport dimension; larger = cards reach closer to the edgesSPHERE_Y_FACTOR (default 0.60) — vertical squash of the orbitMOBILE_BREAK / TABLET_BREAK — responsive breakpointsMOBILE_ROLL — how far the orbit tilts toward vertical on phonesNav labels are placeholders (Home, Blog, Services, Contact) with neutral
href="#". Point them at real pages or remove them. The theme toggle works out
of the box and persists to localStorage['sphere-theme']; a pre-paint script in
<head> applies the saved theme with no flash. Default is dark.
<script> + importmap and the image
textures do not work from file://. Use a dev server.drawLogoText/drawShadow,
not the stylesheet.three.module.js locally and update the
importmap, and self-host the fonts.SERVICES length === image count, or clicking late cards wraps via
the modulo and shows the wrong copy.If the user needs React, Vue, Svelte, raw WebGL, etc., the bundled template can't
be copied verbatim. references/build-from-scratch.md has the original
section-by-section prompt walkthrough (hero → transition → mobile) that produced
this build, so you can reconstruct it in another stack while preserving the same
behavior and pitfalls.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/re-walkthrough-proTurn a Zillow listing into a cinematic room-by-room walkthrough video (Apify scrape → Higgsfield image-to-video → ffmpeg stitch) to sell to real estate agents/seedance-storyboardUse this skill whenever the user wants to break a scene or story description into individual Seedance 2.0 shots with JSON output. Trigger on: "divide into shots", "create shot JSON", "generate storyboard", "break this scene into shots", "write Seedance prompts", "create storyboard JSON", or whenever a narrative is described and needs to be turned into production-ready Seedance 2.0 generation prompts. Also trigger when the user pastes a story in any language and asks for a shot list, shot breakdown, or JSON files. If the user describes a visual scene and mentions Seedance, JSON, or shots — this skill applies.
/Other plugins' skills for the same job
npx claudepluginhub andrydeen/deen-system --plugin studio