/ghibli-threejs:threejs-cinematic-loading-screenfrom ghibli-threejs
Builds a cinematic loading gate for three.js scenes with CSS dawn gradients, mist bands, falling petals, animated title, gold progress bar, and tap-to-enter that unlocks audio. Captures a scene still as backdrop and pre-warms shaders to prevent first-interaction stutter.
Ships in ghibli-threejs. 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.
The loading screen is a gate, not a spinner: a dawn over the scene with mist, petals and a handwritten title, a thin gold progress line, and — once everything is built, compiled and rendered behind it — "tap anywhere to enter". That tap starts the music (browsers only allow audio after a gesture), so no separate "tap to start sound" is needed. The backdrop is a still of the opening view captured from the live scene, which fades into the live render so the reveal has nothing to jump to.
Stack: plain HTML/CSS + one 2D canvas for particles, over a three.js WebGLRenderer. Works with any framework; in
R3F put the gate outside <Canvas> and flip classes from an onCreated/ready callback.
Replace the loading screen of
{{entry file}}with a cinematic gate: a layered CSS dawn (radial sun glow + banded sky gradient),{{optional: a slowly rotating repeating-conic-gradient masked to a disc for god rays}}, three blurred mist bands drifting on alternate animations, an SVG feTurbulence grain overlay, and a 2D canvas of petals and motes. The title animates letter-spacing .34em → .06em with a blur-in. A thin gold progress bar with stage captions. When loading completes the bar fades and "tap anywhere to enter" appears; that tap starts the music. Leave with opacity 0 + scale(1.06) + blur(8px). Use a still of the opening view captured from the live scene as the backdrop, cross-fade it into the live render when ready, and hide the HUD until entered. Before lifting the curtain, render one frame from each view that compiles new shaders (e.g. underwater) so the first interaction doesn't stall.?tourturns the gate text into "tap to start the tour".
references/loading-gate.html)Bottom to top: .shot (the captured still, background-size:cover, a 30 s scale drift 1.04 → 1.07) · .tint
gradient · .mist bands (filter:blur(18px), radial white gradients, 46 s / 63 s / 80 s translateX(±6%)
alternate) · <canvas id="loadFx"> petals + motes · .vignette · .grain (inline SVG feTurbulence
baseFrequency .9, numOctaves 2, opacity .06, mix-blend-mode:overlay) · intro text · progress bar · enter hint.
@keyframes titleIn { from { letter-spacing:.34em; filter:blur(6px); translateY(12px) } to { letter-spacing:.06em } },
2.2 s with a .6 s delay; eyebrow / tagline / rule riseIn staggered .3 s, 1.4 s, 1.8 s.shadowBlur, DPR-aware; stop the loop when the gate leaves (__stopLoadFx).#bar i width transition .5 s, glowing dot at the tip; caption swaps with a fade (.swap).text-align:center; width:max-content; max-width:88vw, with a small glowing dot above it that
pings a ring every 2.4 s. Tagline and small print get text-wrap:balance.fetch() from an inline script in <head>, before the scene module has even
arrived, and report from there. Per file: stream the body and count bytes when the response has a usable
Content-Length and no Content-Encoding; otherwise count the file when it completes. Never invent bytes.last = max(last, min(.99, k)).image-set(), with a portrait crop for tall screens
(@media (max-aspect-ratio:3/4)): a cover fit on a phone otherwise shows only the middle of a wide still.media="print" onload="this.media='all'" and
display=swap.references/enter-and-warmup.js)body.loading → HUD and wordmark hidden. #loading.ready → bar/caption/percent fade out, .shot fades
(1.6 s) so the live scene shows through the now-translucent curtain, .enter fades in and pulses.pointerdown or keydown only once .ready: add .leave (opacity 0, scale 1.06, blur 8 px, 1.4 s),
remove body.loading, start auto-orbit (or the tour), remove the DOM after 1.5 s.body.entering for 3.2 s and give each HUD group a
transition-delay under it (counters 1.1 s, language 1.3 s, dock 1.5 s, wordmark 1.8 s).?silent removes the "sound on" promise; ?tour rewrites the enter text and starts the tour instead.frame(). At the end of build(), jump to each view that uses different programs
(underwater: underwater pass, shafts, bubbles, the clipped mirror of the bed and fish), call frame() twice, then
return to the opening view and render once — all behind the curtain.?nowarm switch: first dive 163 ms cold → 10 ms warmed.frame() and call canvas.toBlob in the same task (the drawing buffer is cleared before the
next frame, not after this one), POST it to a throwaway local receiver, downscale:
sips -Z 1600 in.png --setProperty format jpeg --setProperty formatOptions 68 --out public/loading.jpg (~500 KB).index.html; after edits navigate with ?v=N.AudioContext.resume().hidden attributes lose to author display: rules; hide with body classes or [hidden]{display:none}.left:50%; transform:translateX(-50%) still holds left-aligned lines: "tap anywhere to
enter" sat left of the longer small print beneath it until the block got text-align:center..3em-tracked uppercase small print wraps into a ragged stack; drop it to .2em / 10 px
and balance it.?nowarm).?silent stays silent; ?tour starts the tour from that tap.clamp(56px, 11vmin, 104px)), nothing overflows, the enter line and its small
print share one centre line.threejs-webaudio-generative-soundtrack · threejs-camera-guided-tour · threejs-hud-objective-markers · threejs-dreamy-glass-hud · threejs-webgl-performance-profiling · threejs-headless-visual-verification
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
loading-screen, splash-screen, preloader, shader-compilation, audio-unlock, webgl
Other plugins' skills for the same job
npx claudepluginhub nicksonthc/ghibli-threejs --plugin ghibli-threejs31 skills in this plugin
/threejs-blender-glb-pipelineBuilds a reference-image-driven asset pipeline from headless Blender to GLB for a three.js scene — an asset contract (units, axes, grounding, required mesh/material names, budgets, attachment numbers), one parallel subagent per asset group writing craft_<slug>.py generators, preview renders compared against the reference, measured-bounding-box placement in the web scene, Draco compression, and a scored asset quality pass. Use when the user has a reference picture and wants a 3D scene from it, asks to model props/trees/characters in Blender for three.js, export GLBs, fix glTF export issues (vertex-colour alpha, UV flip, axes, custom normals), compress models, or rate and improve every asset in a scene./threejs-boat-buoyancy-steeringFloats a boat (or any buoyant prop) on three.js water with Gerstner waves generated from one JS table that feeds both the GLSL vertex shader and a CPU waveHeight(), four-probe heave/pitch/roll damped springs, an arc-length drift lane that bends round rocks, click-to-steer W/A/S/D rowing with momentum and drag, an autopilot that pursues the lane back, and a chase camera that keeps the orbit. Use when the user wants a drifting or steerable boat, buoyancy, objects bobbing on waves, Gerstner waves on a river/lake, a boat autopilot, or a follow/chase camera behind a vehicle on water./threejs-camera-guided-tourBuilds a hands-free guided camera tour for a three.js scene — keyframes as data, a time-parametrised Catmull-Rom (Hermite) path with continuous velocity, one camera-owner flag, the tour driving time of day and a day→night blend, staged creatures crossing the frame, handwritten captions, portrait-phone lens widening, instant hand-back on drag/scroll/tap/Esc, and a seek() hook for screenshots and video capture. Use when adding a tour mode, cinematic flythrough, attract mode, camera path animation, keyframed camera, spline camera or showcase video capture to a WebGL scene./threejs-day-cycle-lightingAnimates the sun in a three.js scene from sunrise to sunset through a single applySun(az, el) writer — azimuth sweep, elevation arc, warm-to-gold light colour, horizon falloff, warming sky dome and fog, re-aimed god rays and every sun-driven shader uniform — plus a cinematic "sun follows the lens" mode that keeps the sun beside the camera heading for backlit shots with boosted god rays and forward scattering. Use when adding a day/night cycle, time-of-day slider, sunrise/sunset, moving sun, backlit tour shots, or when several systems fight over the sun direction in WebGL/R3F./threejs-dreamy-glass-hudTurns a three.js scene's DOM overlay into one coherent, dreamlike HUD — a single frosted-glass material shared by every pill, badge and popover whose colours are registered CSS properties so the whole HUD cross-fades from pearl to deep indigo as the scene turns to night; an inline-SVG icon dock whose lit toggles glow gold instead of shouting; a glass popover in place of a native select; first-visit hints "whispered" in handwriting that step aside the moment the visitor understands; a HUD that drifts away after half a minute of stillness; a mote of light under each tap; a staggered arrival after the loading gate; and letterbox bars during a camera tour. Use when the overlay UI looks like a dev panel on top of a beautiful scene, when asked for a dreamy, cinematic, premium or 梦幻 / 绝美 UI, glassmorphism, a day/night-aware HUD, onboarding hints, auto-hiding UI, tap feedback, or to restyle lil-gui to match./threejs-first-person-bvh-walkLands a character on a landmark and lets the visitor walk it in first person in three.js — a floating-down arrival, the camera slipping from a three-quarter view into her eyes, WASD + pointer-lock look, Shift run, E use, V over-shoulder, Esc leave, a touch thumb stick, a levitation lift between floors, interiors lit by the nearest lamps — with a three-mesh-bvh capsule controller that never gets stuck (footprint ground, sideways-only capsule push-out, glancing along edges, climb-back for every drop, a breadcrumb unstick) and a headless flood-fill + random-wander soak test that proves it. Use when the user wants first-person or third-person walking inside a GLB building or island, WASD movement with collision, a character controller, pointer lock, or says the player gets stuck on walls, balconies, stairs, rails or seams.