滚动运镜的 3D 人物简历

免费样板 · 无需注册 仅限个人学习使用,不得商用 / Personal & learning use only — no commercial use

固定 3D 黏土人物做背景、滚动时相机沿模型自带动画推近脸部各处的个人简历:手写体 About 首屏、右侧磨砂轨道上的五段时间轴、钉住横移的作品画廊和全屏作品详情。

#3D 人物#滚动运镜#景深#眼球跟随#横向画廊#暗色#中英双语21 次浏览
Create a React frontend using Tailwind CSS v4, the `motion/react` library for animations, `lucide-react` for icons, `three` (0.169) and `postprocessing` (6.39). I want to build a scroll-driven 3D résumé: a fixed clay-style character whose glTF camera animation is scrubbed by scrolling, a right-aligned timeline and a pinned horizontal works gallery, in English with a Chinese version behind an EN / 中文 switch.

Please follow these exact specifications:

1. Global CSS & Fonts (`index.css`):
Load this exact Google Fonts stylesheet:
`https://fonts.googleapis.com/css2?family=Mansalva&family=Cormorant+Upright:wght@500;600&family=Inter:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600&display=swap`
```css
@import "tailwindcss";
@theme inline {
  --font-sans: "Inter", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Mansalva", "Noto Sans SC", cursive;
  --font-serif: "Cormorant Upright", "Noto Sans SC", serif;
  --color-background: #0a0e16;
  --color-surface: #1d2124;
  --color-ink: #f4f1ea;
  --color-muted: rgba(244, 241, 234, 0.6);
  --color-accent: #ffd9b3;
  --color-line: rgba(244, 241, 234, 0.14);
  --color-loader: #6f906f;
}
html { background: #0a0e16; color: #f4f1ea; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; overscroll-behavior: none; }
html, body { overflow-x: clip; }
html[lang="zh-CN"] [class*="tracking-"] { letter-spacing: 0; }
```
`Noto Sans SC` follows every English font so Chinese text renders in it (Mansalva and Cormorant Upright have no Chinese glyphs). In Chinese, every element with a `tracking-*` class gets `letter-spacing: 0`.

2. Custom CSS Effects (append to `index.css`):
```css
/* right-side darkening behind the timeline */
.right-scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(10,14,22,0) 20%, rgba(10,14,22,.75) 58%, rgba(10,14,22,1) 92%); }
/* frosted rail on the right edge, soft left edge */
.glass-rail { position: fixed; top: -2px; right: -2px; bottom: -2px; width: min(680px, 52vw); z-index: 3; pointer-events: none;
  background: rgba(10,14,22,.14); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  -webkit-mask: linear-gradient(to right, transparent 0%, #000 46%); mask: linear-gradient(to right, transparent 0%, #000 46%); }
/* film grain over everything */
.film-grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .4  0 0 0 0 .45  0 0 0 2.2 -.6'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain-shift 1.2s steps(4) infinite; }
@keyframes grain-shift { 0% { transform: translate(0,0) } 25% { transform: translate(-6%,4%) } 50% { transform: translate(5%,-3%) } 75% { transform: translate(-3%,-6%) } 100% { transform: translate(0,0) } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes cue-label { 0%, 100% { opacity: .6 } 50% { opacity: 1 } }
@keyframes cue-dot { 0% { transform: translateY(-10px); opacity: 0 } 25%, 75% { opacity: 1 } 100% { transform: translateY(44px); opacity: 0 } }
.timeline-line::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(rgba(244,241,234,.28), rgba(244,241,234,.04)); }
.dash-list li { position: relative; padding-left: 1.1em; }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: rgba(244,241,234,.6); }
@media (prefers-reduced-motion: reduce) { .film-grain, .cue-anim { animation: none !important; } }
```

3. Main App Structure (`App.tsx`):
- Wrap the page in `<main className="relative font-sans text-ink">`.
- Fixed layers, in this z-order, all `pointer-events-none`:
  - z-0: `<div className="fixed inset-0 z-0">` containing a `<canvas className="block h-full w-full">` driven by the `Hero3D` component (section 4).
  - z-1: `<motion.div className="right-scrim">` with `opacity` = `useTransform(scrollY, [0, 520], [0, 0.4])`.
  - z-3: `<motion.div className="glass-rail">` with `opacity` = `useTransform(scrollY, [innerHeight * 0.5, innerHeight * 1.1], [0, 1])`.
  - z-4: `<motion.div className="fixed inset-0 z-[4]">` whose `background` = `useTransform(worksProgress, [0, 1], ["rgba(8,11,18,0)", "rgba(8,11,18,0.41)"])`, where `worksProgress` is `useScroll({ target: worksRef, offset: ["start end", "start center"] }).scrollYProgress`.
  - z-12: the hero frame (section 6).
  - z-100: `<div className="film-grain" />`.
- Language switch (z-[110], the only element above the grain besides the loader): `<LangSwitch />` fixed at the top right, a glass pill holding two buttons "EN" and "中文" (section 9). Append this CSS to `index.css`:
```css
.lang { position: fixed; right: 18px; top: 16px; z-index: 110; display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(244,241,234,.14); background: rgba(12,16,24,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lang button { min-width: 40px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: rgba(244,241,234,.6); transition: background-color .2s, color .2s; }
.lang button:hover { color: #f4f1ea; }
.lang button[aria-pressed="true"] { background: rgba(244,241,234,.12); color: #f4f1ea; }
```
- Scrollable content: `<div className="relative z-10">` holding, in this exact order: About (section 6), Résumé (section 7), Works (section 8).
- Loader (z-[9999]): a `fixed inset-0 grid place-items-center bg-black transition-opacity duration-[600ms]` overlay. Inside, an `80×80` SVG with two circles at `cx=40 cy=40 r=34`: a track `stroke="rgba(255,255,255,.08)" strokeWidth=3 fill="none"` and a progress arc `stroke="#6f906f" strokeWidth=3 strokeLinecap="round" fill="none"`, rotated `-90deg`, `strokeDasharray = 2π·34`, `strokeDashoffset = 2π·34 × (1 − progress)`, `transition: stroke-dashoffset .35s ease`, `filter: drop-shadow(0 0 6px rgba(111,144,111,.55))`. Progress comes from `onProgress` in section 4. When it reaches 1, wait 400 ms, set `opacity-0`, then unmount after another 700 ms. No text in the loader.
- No external images or videos except the four works covers in section 8 and the 3D model in section 4.

4. The 3D stage (`Hero3D`):
- Model: load `./3d/me.glb` (must be exactly this path; replace with your own .glb that follows the same naming). Required objects by name: a camera with an animation clip `CameraAction`; empties `focus-0` (hero), `focus-1` … `focus-5` (one per timeline entry) and `focus-works`; meshes whose names contain `eye`; meshes whose names start with `sticker` (keep them visible).
- Renderer: `WebGLRenderer({ antialias: false, stencil: false })`, pixel ratio `min(devicePixelRatio, 1.5)`, `toneMapping = NoToneMapping`, PCF shadow map on. Scene background `#0a0e16`.
- Model transform: wrap the glTF scene in a group at position `(0, 0.4, -0.7)`, uniform scale `2.25`. Every mesh `castShadow = receiveShadow = true`. For eye meshes call `geometry.computeVertexNormals()` and set `material.flatShading = false`.
- Background: a `SphereGeometry(1, 32, 32)` scaled ×100 with a `BackSide`, `depthWrite: false` ShaderMaterial: `t = smoothstep(0, 1, clamp(normalize(position).y * 1.4 * 0.5 + 0.5, 0, 1))`, color `mix(#dbd3b5, #6f906f, t)`.
- Lighting: `RoomEnvironment` through `PMREMGenerator` as `scene.environment`, `scene.environmentIntensity = 0.85`; `HemisphereLight(#ffffff, #404040, 1.15)`; key `DirectionalLight(#ffd9c6, 2.35)` at `(5, 8, 5)` casting 2048² shadows; fill `DirectionalLight(#9fc6ff, 2.25)` at `(-5, 4, -4)`.
- Post-processing (`postprocessing` EffectComposer, `frameBufferType: HalfFloatType`): `RenderPass` → `EffectPass(DepthOfFieldEffect({ worldFocusRange: 0.15, bokehScale: 11, height: 480 }))` with `effect.target` set to a Vector3 → `EffectPass(BloomEffect({ mipmapBlur: true, intensity: 0.6, luminanceThreshold: 0.82, luminanceSmoothing: 0.3 }))` → `EffectPass(SMAAEffect, ToneMappingEffect({ mode: ACES_FILMIC }))`.
- Animation mixer: play every clip, set `paused = true`; each frame set `action.time = min(frame / 24, clip.duration)` and call `mixer.update(0)`. Total frames = `round(CameraAction.duration × 24)`.
- Scroll → frame (computed every animation frame): `P = 50` frames per stop, `n = 5` stops, `resumeFrames = n × P`. Stop elements are `[data-stop]` (the five timeline entries). Reference line `L = scrollY + innerHeight × 0.3`; `tops[i]` = document top of each stop. `dwell(t)` returns 0 for `t < 0.35`, 1 for `t > 0.65`, otherwise `smoothstep((t − 0.35) / 0.3)`. If `L ≤ tops[0]`: `s = −1 + dwell(scrollY / (tops[0] − innerHeight × 0.3))`; if `L ≥ tops[n−1]`: `s = n − 1`; otherwise `s = i + dwell((L − tops[i]) / (tops[i+1] − tops[i]))`. `frame = (s + 1) × P`. When the `[data-gallery]` element's top `g` is `< innerHeight`: while `g > 0`, `frame = resumeFrames + 50 × (1 − g / innerHeight)`; after that, `frame = resumeFrames + 50 + (total − resumeFrames − 50) × clamp(−g / innerWidth, 0, 1)`.
- Smoothing: `off = smoothstep(target, resumeFrames, resumeFrames + 50)`; `frameSmooth += (target − frameSmooth) × lerp(1 − 0.1^dt, 1, off)`.
- Focus point: with `s = clamp(frameSmooth / 50 − 1, −1, 4)`; inside the gallery use `focus-works`; for `s < 0` lerp `focus-0 → focus-1` by `s + 1`; otherwise lerp `focus-(floor s + 1) → focus-(floor s + 2)` by `fract(s)`.
- Camera: every frame decompose the glTF camera's world matrix into the default camera and copy its `fov`. Then orbit around the focus point by the eased mouse: `smouse += (mouse − smouse) × (1 − 0.1^dt)`, rotation Euler `(−smouse.y × 4°, −smouse.x × 4°, 0, "YXZ")` applied to `(cameraPos − focus)` and premultiplied into the camera quaternion. On touch / `innerWidth ≤ 640`: multiply `(cameraPos − focus)` by 1.2, and `translateX(−distance × 0.12 × smoothstep(s, −0.8, 0.3) × (1 − off))`.
- Depth of field: `effect.target = focus`. `wStart = 1 − smoothstep(frameSmooth, 0, 48)`, `wEnd = smoothstep(frameSmooth, resumeFrames − 50, resumeFrames)`, `w = max(wStart, wEnd)`; `bokehScale = lerp(11, 7.4, w)`, `cocMaterial.focusRange = lerp(0.15, 2.0, w)`.
- Eyes (skip on touch): project both eyes to NDC and average → `(ex, ey)`; `mx = mouse.x − ex`, `my = mouse.y − ey`; yaw `= mx × 45°`, pitch `= −my × 24°`; convergence `= 45° × clamp(1 − hypot(mx, my) / 0.25, 0, 1)`, subtracted from the left eye's yaw sign −1 and right eye's +1 (decided by local x); target quaternion `Euler(pitch, yaw − side × conv, 0, "YXZ") × baseQuaternion`, `slerp` factor 0.44.
- Report load progress through `onProgress(loaded / total)` and call it with 1 when the model is ready. Dispose renderer, composer and listeners on unmount.

5. Shared motion values:
- `EASE = [0.22, 1, 0.36, 1]`.
- Reveal container variants: `{ hidden: {}, show: { transition: { staggerChildren: 0.09, delayChildren: 0.04 } } }`; item variants: `{ hidden: { opacity: 0, y: 26 }, show: { opacity: 1, y: 0, transition: { duration: 0.75, ease: EASE } } }`; containers use `initial="hidden" whileInView="show" viewport={{ once: true, margin: "-12% 0px -12% 0px" }}`.

6. The About hero (`<section>`):
- Container: `relative flex min-h-screen flex-col items-center justify-end pb-[6vh]`.
- Animation: enter — the inner block uses `animation: fade-down 1.8s ease both`. Scroll-linked — `useScroll({ target: aboutRef, offset: ["start 0.6", "start start"] })`: outer block `filter` blur `0px → 16px` and `opacity 1 → 0` over progress `[0, 0.5]`; headline `y 0 → −96` and `letterSpacing 0.01em → 0.42em` over `[0, 1]`; paragraph `y 0 → −52` over `[0, 1]`. Hover: none.
- Layout: centered column, `px-6 text-center pointer-events-none`.
- Content:
  - Headline `<h1>`: "Hello, I'm Your Name" (`font-display text-[clamp(30px,7.2vw,80px)] leading-none mb-[0.3em]`).
  - Paragraph: "Write two or three sentences about yourself here — what you make, what you are curious about and where people can find you. This paragraph is only a placeholder." (`mx-auto mt-[0.5em] max-w-[min(660px,88vw)] text-[clamp(8px,1.05vw,16px)] leading-[1.7] tracking-[0.02em]`).
  - Scroll cue (`mt-[3vh] flex flex-col items-center gap-2.5 text-[10px] uppercase tracking-[0.32em] text-muted`, opacity = `useTransform(scrollY, [0, 160], [1, 0])`): label "Scroll" (`cue-anim`, `animation: cue-label 2.4s ease-in-out infinite`), then a track `relative h-11 w-px overflow-hidden` with `background: linear-gradient(rgba(244,241,234,.28), rgba(244,241,234,.04))` holding a dot `absolute left-1/2 top-0 -ml-[1.5px] h-[9px] w-[3px] rounded-[2px] bg-accent` with `box-shadow: 0 0 6px rgba(255,217,179,.8)` and `animation: cue-dot 1.9s cubic-bezier(.65,0,.35,1) infinite`.
- Hero frame (fixed, z-12, opacity = `useTransform(scrollY, [0, 280], [1, 0])`), with `--m: clamp(16px, 2.4vh, 30px)`:
  - Hairline frame `absolute inset-[var(--m)] border border-[rgba(244,241,234,.1)]`.
  - Four "+" marks (`absolute text-[13px] leading-none text-[rgba(244,241,234,.32)]`) on the frame corners, each translated ±50% onto the corner.
  - Corner text (`absolute text-[clamp(9px,0.9vw,11px)] uppercase leading-[1.6] tracking-[0.26em] text-[rgba(244,241,234,.46)]`): top-left at `top: calc(var(--m)+16px); left: calc(var(--m)+20px)` — "Your Name" (`block normal-case tracking-[0.12em] text-[rgba(244,241,234,.7)]`) over "Your Title"; top-right "Portfolio — 2026" (right-aligned, `max-sm:hidden`); bottom-left "Shape · Motion · Code"; right edge vertical text "Based in Your City" (`top-1/2 -translate-y-1/2 right-[calc(var(--m)+7px)] [writing-mode:vertical-rl] tracking-[0.3em] max-sm:hidden`).

7. The Résumé (`<section>`):
- Container: `px-6 py-[20vh]`.
- Animation: title — `initial={{ opacity: 0, y: 20 }} whileInView={{ opacity: 1, y: 0 }} viewport={{ once: true, margin: "-10% 0px" }} transition={{ duration: 0.7, ease: EASE }}`; each entry is a reveal container (section 5) whose children are reveal items. Hover: social icon buttons only.
- Layout: title and timeline both `ml-auto mr-[6vw] w-[min(480px,90vw)] max-sm:mr-[5vw]`; timeline `relative mt-[8vh] timeline-line`; entries `relative pl-[34px] pb-[46vh] last:pb-[38vh]`, each with `data-stop`.
- Content:
  - Title `<h2>`: "Résumé" (`font-serif text-[clamp(28px,5vw,56px)] font-semibold tracking-[0.02em]`).
  - Each entry: dot `absolute left-0 top-1.5 size-[11px] rounded-full bg-accent shadow-[0_0_0_4px_rgba(255,217,179,.12)]`; period (`mb-[0.6em] text-[13px] tracking-[0.18em] text-[rgba(244,241,234,.72)]`); place `<h3>` (`text-[clamp(18px,2.4vw,26px)] font-semibold leading-[1.25]`); role (`mt-[0.35em] text-[15px] text-[rgba(244,241,234,.8)]`); points `<ul className="dash-list mt-[1.1em] flex flex-col gap-[0.6em]">` with `li` `text-sm leading-[1.75] text-[rgba(244,241,234,.95)]`.
  - Entry 1: "2000 – 2003" / "Moonbeam Noodle Academy" / "Certificate in Advanced Cloud Watching".
  - Entry 2: "2004 – 2009" / "Purple Teapot Logistics" / "Senior Sock Inspector" / points "Sorted 9,000 left socks by mood", "Taught a teapot to whistle in three keys", "Lost one shoe, found two umbrellas".
  - Entry 3: "2012 – 2015" / "The Upside-Down Bakery" / "Head of Gravity" / points "Baked bread that falls upward on Tuesdays", "Negotiated peace between croissants and bagels", "Kept the ceiling free of flour".
  - Entry 4: "2016 – Now" / "Content Creator", then a group (`mt-[1.8em]`): heading row `flex flex-wrap items-center gap-[0.6em] text-[clamp(15px,1.9vw,19px)] font-semibold` with "Snail Racing Weekly" and sub "slow sports channel" (`text-xs font-normal tracking-[0.04em] text-muted`); one dash item "4 subscribers · 2 of them are snails"; icon row `mt-[1.4em] flex gap-3` of three `<a href="#">` buttons `pointer-events-auto grid size-11 place-items-center rounded-full border border-[rgba(244,241,234,.32)] bg-white/5 text-[rgba(244,241,234,.92)] transition duration-200 hover:-translate-y-0.5 hover:border-[rgba(244,241,234,.4)] hover:bg-[rgba(244,241,234,.06)] hover:text-ink` holding lucide `Youtube`, `Instagram`, `Twitter` at `size={20}`.
  - Entry 5: "2019 – Now" / "Indie Studio", then a group with heading link "Spoonfactory" (`pointer-events-auto border-b border-[rgba(244,241,234,.45)] transition-colors hover:border-accent hover:text-accent`, `href="#"`) and sub "A tool that turns forks into spoons".

8. The Works gallery (`<section ref={worksRef}>`):
- Container: an outer `<div data-gallery className="relative">` whose height is `calc(100vh + range)`, where `range = track.scrollWidth − innerWidth` (measure on mount and resize). Inside: `sticky top-0 flex h-screen items-center overflow-hidden`.
- Animation: `useScroll({ target: galleryRef, offset: ["start start", "end end"] })` → track `x = useTransform(progress, [0, 1], [0, −range])`; progress fill `scaleX = progress`; hint `opacity = useTransform(progress, [0.85, 1], [1, 0])`. Rows hover: `transition-[padding-left] duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] hover:pl-2.5`, name `transition-colors duration-200 group-hover:text-accent`. No scroll reveal.
- Layout: track `flex h-full items-stretch pl-[100vw]`; four cards `flex h-full w-[min(880px,78vw)] flex-none flex-col gap-[clamp(26px,5vh,56px)] border-l border-line bg-[rgba(13,17,25,0.66)] px-[clamp(40px,5vw,76px)] pt-[clamp(56px,11vh,132px)] pb-[clamp(40px,7vh,80px)] last:border-r`.
- Content:
  - Corner title "Works" (`absolute left-[clamp(24px,6vw,80px)] top-[clamp(16px,4vh,40px)] z-[2] font-serif text-[clamp(22px,3vw,38px)] font-semibold tracking-[0.02em]`).
  - Each card: number (`mb-[1.1em] block text-[clamp(11px,1.2vw,13px)] tracking-[0.3em] text-[rgba(244,241,234,.4)] tabular-nums`), title `<h3>` (`text-[clamp(24px,3.4vw,44px)] font-semibold leading-[1.06] tracking-[0.01em]`), tagline (`mt-[0.7em] block text-[clamp(12px,1.2vw,14px)] tracking-[0.06em] text-muted`); cover `self-end mr-[clamp(12px,6%,80px)] aspect-[3/2] w-[clamp(160px,22vw,240px)] overflow-hidden rounded-xl border border-line bg-surface` with `<img className="size-full object-cover">`; a list of rows, each row a `<button className="group flex w-full items-baseline justify-between gap-[clamp(16px,4vw,64px)] py-[clamp(14px,2.2vh,26px)] text-left">` separated by `border-b border-[rgba(244,241,234,.09)] last:border-b-0`, name (`text-[clamp(13px,1.35vw,16px)] leading-[1.5] text-[rgba(244,241,234,.9)]`) and meta (`max-w-[46%] text-right text-[clamp(11px,1.15vw,13px)] font-medium tracking-[0.04em] text-accent`); optional footer `mt-[clamp(32px,5vh,56px)] border-t border-line pt-[clamp(20px,3vh,30px)] text-[clamp(12px,1.2vw,14px)] leading-[1.7] text-muted` with an optional label (`mr-[1.2em] inline-block min-w-[3.2em] text-[11px] uppercase tracking-[0.16em] text-[rgba(244,241,234,.4)]`) and value (`text-accent tracking-[0.04em]`).
  - Card 01: "Brand Animation" / "Northwind · Lumen Lab" / cover `https://images.unsplash.com/photo-1561070791-2526d30994b5?w=960&q=80&fm=jpg&fit=crop` (must be exactly this URL) / rows "Rainy Day Café · Brand Film" — "Animation", "City Night Run · Interactive Site" — "Interactive", "New Year Gift Box · Unboxing Motion" — "Motion", "More brand projects" — "" / footer label "Awards", value "Pentawards · CSSDA · Awwwards SOTD".
  - Card 02: "Content Creator" / "120K followers | Monthly" / cover `https://images.unsplash.com/photo-1518770660439-4636190af475?w=960&q=80&fm=jpg&fit=crop` (must be exactly this URL) / rows "“I Sculpted a Full Chess Set from Clay”" — "3.2M views · Weekly Picks", "“I Made a Moving 3D Twin of My Cat”" — "1.8M views", "“I Turned an Old Radio into a Desk Lamp”" — "950K views", "“We Held an Exhibition Inside a Pixel Game”" — "" / footer value (muted, no label) "3D modeling · 3D printing · electronics DIY · motion graphics · editing".
  - Card 03: "Product" / "Clayframe" / cover `https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=960&q=80&fm=jpg&fit=crop` (must be exactly this URL) / row "Clayframe" — "Clay-style 3D character generator".
  - Card 04: "Side Projects" / "Shader · WebGL · Blender" / cover `https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=960&q=80&fm=jpg&fit=crop` (must be exactly this URL) / rows "Shader Sketches", "WebGL Experiments", "Blender Characters", "Other experiments" (no meta).
  - Progress bar `absolute bottom-[clamp(22px,5vh,50px)] left-1/2 z-[2] h-0.5 w-[min(280px,40vw)] -translate-x-1/2 overflow-hidden rounded-sm bg-[rgba(244,241,234,.18)]` with fill `size-full origin-left bg-accent`.
  - Hint "Keep scrolling" (`absolute bottom-[clamp(20px,5vh,48px)] right-[clamp(24px,6vw,80px)] z-[2] text-[11px] uppercase tracking-[0.18em] text-muted`).
- Detail modal (`AnimatePresence`), opened by any row: backdrop `fixed inset-0 z-[65] bg-[rgba(4,6,10,.6)] backdrop-blur-[6px]` (fade 0.3s); panel `fixed inset-y-[clamp(16px,5vh,56px)] inset-x-[clamp(16px,6vw,120px)] z-[70] overflow-y-auto rounded-[20px] border border-line bg-[rgba(29,33,36,.98)] shadow-[0_50px_140px_rgba(0,0,0,.6)]` with `initial={{ opacity: 0, y: 40, scale: 0.98 }} animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, y: 24 }} transition={{ duration: 0.5, ease: EASE }}`. Inside: close button `absolute right-4 top-4 z-[2] grid size-[42px] place-items-center rounded-full border border-line bg-[rgba(10,13,20,.55)] backdrop-blur-[8px] transition duration-200 hover:rotate-90 hover:border-[rgba(244,241,234,.3)]` with lucide `X size={16}`; banner `h-[clamp(180px,42vh,460px)] bg-surface` showing the card's cover `object-cover`; article `mx-auto w-[min(760px,100%)] px-[clamp(24px,5vw,56px)] pt-[clamp(28px,5vh,56px)] pb-[clamp(40px,8vh,88px)]` with header `mb-[clamp(24px,4vh,40px)] border-b border-line pb-[clamp(20px,3vh,30px)]` holding the row name (`text-[clamp(24px,3.4vw,42px)] font-semibold leading-[1.08]`) and the card title + meta (`mt-[0.7em] text-[clamp(12px,1.2vw,14px)] tracking-[0.08em] text-muted`); paragraph "Write about the background of this project, what you were responsible for and how it turned out. Two or three paragraphs is plenty — a process shot or a short video helps." (`text-[15px] leading-[1.8] text-[rgba(244,241,234,.85)]`); a link button "View project →" (`mt-8 inline-flex h-11 items-center rounded-full border border-line px-5 text-sm transition-colors hover:border-accent hover:text-accent`, `href="#"`). Close on Escape, backdrop click, or the button; lock `body` scroll while open.

9. Language (EN / 中文):
- English is the default. Keep a `lang` state (`"en" | "zh"`) in `App`, start at `"en"`, read `localStorage.lang` in a `useEffect` (wrap reads and writes in try/catch), write it on every change, and set `document.documentElement.lang` to `"en"` or `"zh-CN"`. Share `{ lang, setLang }` through a React context and wrap `<main>` in its provider.
- `t(s)` returns `ZH[s]` when the language is Chinese and the key exists, otherwise `s`. Every component calls `const t = useT()` and passes every visible string and `aria-label` through `t()`, including the data arrays (`ABOUT`, `RESUME`, `WORKS`) at render time and the modal's row name, card title and meta. Brand, product and platform names stay in English: "Spoonfactory", "Clayframe", "Northwind · Lumen Lab", "Pentawards · CSSDA · Awwwards SOTD", "WebGL", "Blender", "Youtube", "Instagram", "Twitter". Periods such as "2000 – 2003" and card numbers stay as they are.
- Switch: `<div className="lang" role="group" aria-label="Language">` with two `<button type="button">`s, "EN" and "中文"; the active one gets `aria-pressed="true"`. It replaces the old single "EN" pill at the top right and is visible at every width.
- Text inside the WebGL canvas (the stickers on the model's face) is part of the model texture and is not translated.
- Chinese copy (must be exactly this, keyed by the English text):
```json
{
  "Your Name · 3D Résumé": "你的名字 · 3D 简历",
  "Your Name": "你的名字",
  "Your Title": "你的头衔",
  "Portfolio — 2026": "作品集 — 2026",
  "Shape · Motion · Code": "造型 · 动态 · 代码",
  "Based in Your City": "现居你的城市",
  "Hello, I'm Your Name": "你好,我是你的名字",
  "Write two or three sentences about yourself here — what you make, what you are curious about and where people can find you. This paragraph is only a placeholder.": "在这里用两三句话介绍自己:你做什么、对什么好奇、别人在哪里能找到你。这段文字只是占位。",
  "Scroll": "向下滚动",
  "Résumé": "履历",
  "Moonbeam Noodle Academy": "月光面条学院",
  "Certificate in Advanced Cloud Watching": "高级看云结业证书",
  "Purple Teapot Logistics": "紫茶壶物流",
  "Senior Sock Inspector": "高级袜子质检员",
  "Sorted 9,000 left socks by mood": "按心情给 9000 只左脚袜子分了类",
  "Taught a teapot to whistle in three keys": "教会一把茶壶用三个调吹口哨",
  "Lost one shoe, found two umbrellas": "丢了一只鞋,捡回两把伞",
  "The Upside-Down Bakery": "倒立面包房",
  "Head of Gravity": "重力主管",
  "Baked bread that falls upward on Tuesdays": "烤出每逢周二就往上掉的面包",
  "Negotiated peace between croissants and bagels": "调停了可颂和贝果之间的纷争",
  "Kept the ceiling free of flour": "让天花板上一点面粉都不沾",
  "2016 – Now": "2016 – 至今",
  "2019 – Now": "2019 – 至今",
  "Content Creator": "内容创作者",
  "Snail Racing Weekly": "蜗牛赛跑周刊",
  "slow sports channel": "慢节奏体育频道",
  "4 subscribers · 2 of them are snails": "4 位订阅者 · 其中 2 位是蜗牛",
  "Indie Studio": "独立工作室",
  "A tool that turns forks into spoons": "把叉子变成勺子的小工具",
  "Works": "作品",
  "Brand Animation": "品牌动画",
  "Rainy Day Café · Brand Film": "雨天咖啡馆 · 品牌短片",
  "Animation": "动画",
  "City Night Run · Interactive Site": "城市夜跑 · 互动网站",
  "Interactive": "互动",
  "New Year Gift Box · Unboxing Motion": "新年礼盒 · 开箱动效",
  "Motion": "动效",
  "More brand projects": "更多品牌项目",
  "Awards": "奖项",
  "120K followers | Monthly": "12 万粉丝 | 月更",
  "“I Sculpted a Full Chess Set from Clay”": "「我用黏土捏了一整套国际象棋」",
  "3.2M views · Weekly Picks": "320 万播放 · 每周精选",
  "“I Made a Moving 3D Twin of My Cat”": "「我给我的猫做了个会动的 3D 分身」",
  "1.8M views": "180 万播放",
  "“I Turned an Old Radio into a Desk Lamp”": "「我把旧收音机改成了台灯」",
  "950K views": "95 万播放",
  "“We Held an Exhibition Inside a Pixel Game”": "「我们在像素游戏里办了场展览」",
  "3D modeling · 3D printing · electronics DIY · motion graphics · editing": "3D 建模 · 3D 打印 · 电子 DIY · 动态图形 · 剪辑",
  "Product": "产品",
  "Clay-style 3D character generator": "黏土风 3D 角色生成器",
  "Side Projects": "个人项目",
  "Shader · WebGL · Blender": "着色器 · WebGL · Blender",
  "Shader Sketches": "着色器草图",
  "WebGL Experiments": "WebGL 实验",
  "Blender Characters": "Blender 角色",
  "Other experiments": "其他实验",
  "Keep scrolling": "继续滚动",
  "Write about the background of this project, what you were responsible for and how it turned out. Two or three paragraphs is plenty — a process shot or a short video helps.": "写写这个项目的背景、你负责了哪些部分、最后效果如何。两三段就够了,配一张过程图或一段短视频会更好。",
  "View project →": "查看项目 →",
  "Close": "关闭"
}
```

10. Responsive Notes:
- Below `640px`: the vertical "Based in Your City" is hidden; the timeline uses `mr-[5vw]`; the works gallery stops pinning — outer height `auto`, no sticky, track `flex-col pl-0` with `x = 0`, cards `w-full border-l-0 border-t`, progress bar and hint hidden, corner title becomes a static block above the cards (`px-[clamp(24px,6vw,80px)] pt-10 pb-6 text-[clamp(28px,8vw,36px)]`).
- 3D on touch / narrow screens: no eye tracking, camera pulled back ×1.2 and shifted left during the timeline (section 4).
- Respect `prefers-reduced-motion`: disable `fade-down`, the cue loops and the grain animation.
- The EN / 中文 switch keeps the same size and position at every width; at `390px` it sits clear of the top-left name block. Chinese copy wraps within the same containers; no width changes.

11. Design Constraints (do not deviate):
- Use only these colors: `#0a0e16`, `#1d2124`, `rgba(13,17,25,.66)`, `#f4f1ea` and its alpha variants, `#ffd9b3`, `#6f906f`, `#dbd3b5`, `#ffd9c6`, `#9fc6ff`. `#ffd9b3` is the only accent; do not add a second accent color or gradient text.
- Do not put cards or panels behind the timeline text; readability comes only from `.right-scrim` and `.glass-rail`.
- Do not add a navigation bar or a footer; the only control outside the content is the EN / 中文 switch. The page ends with the works gallery.
- No box-shadows except the timeline dot ring, the scroll-cue dot glow and the detail modal.
- `font-display` (Mansalva) appears only in the hero headline; `font-serif` (Cormorant Upright) only in "Résumé" and "Works".
- Keep the left half of the viewport free of text in the timeline so the 3D character stays visible.
- Do not add sections, logos, badges or copy that are not listed above.


---

## 使用限制(重要)

**仅限个人学习使用,不得商用。** 这个模板不适用 Design Vault 的通用许可。3D 人物模型(me.glb)是 Sen Zheng 本人的形象,保留所有权利,不得商用或再分发;代码按 MIT 许可提供,须保留版权声明(Copyright (c) 2026 Sen Zheng (SEN))。

原作:Sen Zheng — https://github.com/dayinji/sen-3d-resume(代码 MIT)

关于这个模板

「滚动运镜的 3D 人物简历」是 Design Vault 收录的作品集类行业整站模板,包含在线预览、设计提示词、参考源码、整站 zip 包、3D 模型。把设计提示词交给 Claude、Cursor、ChatGPT 或 DeepSeek,就能生成同样风格的页面。

怎么用

  1. 在上方预览里看桌面、平板、手机三种尺寸的效果。
  2. 这个样板无需注册:直接复制「设计提示词」和源码,或点「交给 AI 构建」发送到 Claude、Cursor、ChatGPT、DeepSeek。下载整站 zip 和 3D 模型也不用登录,而且不消耗免费解锁次数。
  3. 让 AI 按提示词生成页面,再换成你自己的文案、图片和品牌色。
类型
行业整站模板
分类
作品集
技术栈
React + TypeScript + Tailwind CSS
包含
在线预览、设计提示词、参考源码、整站 zip 包、3D 模型
收录时间
2026-10-23
滚动运镜的 3D 人物简历 · designvault