用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
Lumen Drift 是一个硬件产品的单页发布网站。它的主视觉是一个完全用 three.js 基础几何体搭建的台灯,没有模型文件、贴图或 HDRI。一个全屏 WebGL 舞台位于页面背景。当访客滚动浏览四个功能章节时,台灯在底座上转动,两个铰链弯曲,灯头倾斜,光线在冷白、琥珀和紫罗兰之间切换。柔和的光锥、光晕、飘浮的尘埃和地面上的光斑让场景感觉像是被照亮的,而非渲染出来的。
这个模板适合小型硬件团队、众筹活动和产品设计师,他们想要一个展示物体运动的预购页面,而不是照片轮播。外观接近纯黑,使用大号 Space Grotesk 标题、Inter 正文,以及用 JetBrains Mono 排版、带细线分隔和超大关键数字的规格表。每个 UI 强调色都会跟随台灯当前的颜色:滚动进度线、章节圆点、按钮光晕和角落里的实时读数,显示灯头角度、输出和色调十六进制值。第四章中一个小型 SVG 日照曲线会随滚动自行绘制。
滚动编排由一张关键帧表设定。每个部分都有一个姿态、一个相机位置和一个光色,GSAP ScrollTrigger 在它们之间插值。Lenis 提供惯性滚动。开启减少动态效果后,页面会跳过动画,直接跳到每个姿态。
要适配页面,请在一个内容文件中修改品牌、产品名称、产品类型、价格、发货窗口和受众,然后重写章节文案。台灯的几何体和颜色停靠点是简短的、带注释的常量,因此你可以把它改造成植物生长灯、影棚主光或阅读灯,而无需更改布局。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# 3D Product Launch Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A single-page, dark, cinematic product launch site for [PRODUCT_NAME], a [PRODUCT_TYPE] by [BRAND]. A fixed full-viewport three.js canvas renders a lamp built procedurally from primitives. HTML sections scroll over it: hero, four feature chapters (Focus, Warm, Night, Rhythm) with copy alternating left and right, a hairline spec sheet and a preorder call to action. Scroll progress drives the lamp's base turn, arm pose, head tilt, camera dolly and light color through a fixed keyframe table. The lamp has a volumetric beam cone, a bloom halo, floating dust motes and a lit pool on the floor. Every UI accent follows the lamp's current light color.
- Audience: Visitors deciding whether to preorder [PRODUCT_NAME], mainly [AUDIENCE]. The template itself is for hardware startups, crowdfunding campaigns and product designers who want a launch page that shows the product moving.
- Goal: Show what the product does by moving it on screen: each chapter puts the lamp in a new pose and color. Then back it up with a precise spec sheet and end on a calm, low-pressure preorder reservation (static UI only).
- Tone: Quiet, confident and precise. Short declarative headlines, concrete numbers, no exclamation marks and no hype words. It should feel like a film title sequence crossed with an engineering datasheet.
## Stack
- Framework: Vite 5 + TypeScript + three.js
- Styling: Vanilla CSS
- Libraries: three (incl. three/examples/jsm: EffectComposer, RenderPass, UnrealBloomPass, OutputPass, RoomEnvironment) (MIT), gsap (core + ScrollTrigger) (GSAP Standard License (free, commercial use allowed)), lenis (MIT), @fontsource/space-grotesk (OFL-1.1), @fontsource-variable/inter (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1), typescript (dev) (Apache-2.0), vite (dev) (MIT)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Scaffold with `npm create vite@latest` using the vanilla-ts template, then `npm i three gsap lenis @fontsource/space-grotesk @fontsource-variable/inter @fontsource/jetbrains-mono` and `npm i -D @types/three`.
- vite.config.ts: `base: './'`, `build.sourcemap: false`, `build.outDir: 'dist'`, `build.assetsInlineLimit: 0`. Do not copy src/ into dist/.
- package.json scripts: `dev: vite`, `build: tsc && vite build`, `preview: vite preview`.
- File layout: index.html, src/main.ts (boot, Lenis, ScrollTrigger wiring), src/content.ts (ALL copy and variable values in one exported object), src/styles.css (all CSS, tokens as custom properties, all @keyframes), src/scene/stage.ts (renderer, camera, composer, lights, floor, render loop), src/scene/lamp.ts (procedural lamp), src/scene/beam.ts (beam cone shader, halo sprite, dust points, floor pool), src/scene/keyframes.ts (the keyframe table and state object), src/ui/hud.ts (live readout and --light CSS variable).
- Render all HTML copy from src/content.ts at boot (template strings into section containers) so swapping variables only touches that file. If the variable values differ from the defaults, rewrite every headline, body line, stat and spec row in content.ts to fit the new product while keeping the same lengths and structure.
- Import fonts once in main.ts: `@fontsource/space-grotesk/500.css`, `/600.css`, `@fontsource-variable/inter`, `@fontsource/jetbrains-mono/400.css`, `/500.css`.
- Register GSAP plugins: `gsap.registerPlugin(ScrollTrigger)`. Drive Lenis from gsap.ticker (`gsap.ticker.add(t => lenis.raf(t*1000))`, `gsap.ticker.lagSmoothing(0)`, `lenis.on('scroll', ScrollTrigger.update)`). Lenis options: `duration: 1.15`, easing `t => Math.min(1, 1.001 - Math.pow(2, -10*t))`.
- Add public/favicon.svg: a 32×32 rounded square #07080B with a centered #FFB547 ring (r=8, stroke 3) and a 3px dot. `<title>` is `[PRODUCT_NAME] — [BRAND]`.
- Write ASSETS.md at the project root stating that the site uses no third-party image, icon, model or texture files. Everything is generated in code, and fonts come from Fontsource (OFL-1.1).
## Variables
- [BRAND] — Brand name (default: "Kelvane"). Invented company name shown in the header wordmark and footer
- [PRODUCT_NAME] — Product name (default: "Sola One"). The product being launched
- [PRODUCT_TYPE] — Product type (default: "smart desk lamp"). Lowercase noun phrase used in running copy
- [PRICE] — Preorder price (default: "$249")
- [SHIP_WINDOW] — Ship window (default: "March 2027"). Month and year shown in the hero eyebrow and preorder block
- [AUDIENCE] — Audience (default: "people who work, read and wind down at the same desk"). Lowercase phrase that completes 'built for …'
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/3d-product-launch-page in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "3D Product Launch Page"
colors:
void: "#07080B"
graphite: "#0E1016"
hairline: "#1C1F27"
bone: "#ECEAE4"
ash: "#8A8F9C"
amber: "#FFB547"
frost: "#E6F0FF"
violet: "#9C7CFF"
rim: "#5C6680"
light_dynamic: "var(--light), updated from the 3D light color"
typography:
display_h1_h2_big_spec_numerals: { family: "Space Grotesk", weights: [500, 600] }
text_body_nav_buttons: { family: "Inter Variable", weights: [400, 500] }
mono_eyebrows_hud_spec_table_values_chart_labels: { family: "JetBrains Mono", weights: [400, 500] }
spacing: "8px base unit. Content grid: 12 columns, max-width 1280px, 24px gutters, side padding clamp(20px, 5vw, 72px). Type scale: H1 clamp(56px, 9vw, 148px) / line-height 0.92 / letter-spacing -0.04em, weight 500. H2 clamp(36px, 5vw, 72px) / 1.0 / -0.03em, weight 500. Body 17px / 1.6 in Ash, max-width 440px. Eyebrow mono 12px uppercase, letter-spacing 0.14em, color var(--light). Big spec numerals: Space Grotesk 600, clamp(64px, 8vw, 128px), tabular. Hero is 100vh. Each feature chapter is 160vh tall with its copy block starting 30vh from the section top. The spec sheet and preorder sections use natural height with 160px vertical padding (96px on mobile)."
radius: "Buttons and pills 999px. Mobile copy cards, the email input group and HUD panel 14px. Spec table and rules 0 (square, hairline only)."
---
# 3D Product Launch Page — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Void** `#07080B` — Page background, scene background, fog color
- **Graphite** `#0E1016` — Mobile copy cards, input background, header background at 72% opacity
- **Hairline** `#1C1F27` — 1px rules, table lines, borders, inactive chapter dots
- **Bone** `#ECEAE4` — Primary text, primary button fill
- **Ash** `#8A8F9C` — Body copy, secondary labels, mono captions
- **Amber** `#FFB547` — Light stop 'Warm' (2700K); default --light value; hero and preorder light
- **Frost** `#E6F0FF` — Light stop 'Focus' (5000K)
- **Violet** `#9C7CFF` — Light stop 'Night' (ambient)
- **Rim** `#5C6680` — Constant cool rim light behind the lamp in the 3D scene
- **--light (dynamic)** `var(--light), updated from the 3D light color` — Every UI accent: eyebrows, progress line, active chapter dot, button glow, HUD tone swatch, focus rings
## Typography
- **Display (H1, H2, big spec numerals)** — Space Grotesk (OFL), weights 500/600. Self-host the font files.
- **Text (body, nav, buttons)** — Inter Variable (OFL), weights 400/500. Self-host the font files.
- **Mono (eyebrows, HUD, spec table values, chart labels)** — JetBrains Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Content grid: 12 columns, max-width 1280px, 24px gutters, side padding clamp(20px, 5vw, 72px). Type scale: H1 clamp(56px, 9vw, 148px) / line-height 0.92 / letter-spacing -0.04em, weight 500. H2 clamp(36px, 5vw, 72px) / 1.0 / -0.03em, weight 500. Body 17px / 1.6 in Ash, max-width 440px. Eyebrow mono 12px uppercase, letter-spacing 0.14em, color var(--light). Big spec numerals: Space Grotesk 600, clamp(64px, 8vw, 128px), tabular. Hero is 100vh. Each feature chapter is 160vh tall with its copy block starting 30vh from the section top. The spec sheet and preorder sections use natural height with 160px vertical padding (96px on mobile).
- Radius: Buttons and pills 999px. Mobile copy cards, the email input group and HUD panel 14px. Spec table and rules 0 (square, hairline only).
## Motion
- Lenis inertial scrolling (duration 1.15, expo-out easing) synced with GSAP ScrollTrigger.
- Scroll-scrubbed 3D choreography: per-section ScrollTriggers (scrub 1.2) tween one shared state object between keyframes. The render loop reads that state every frame.
- Text reveal on enter: every element marked data-reveal goes from opacity 0 / translateY(24px) to 0 / 0 over 0.9s, ease power3.out, stagger 0.08s, triggered at 'top 75%' once.
- Hero intro on load: the canvas fades from black over 1.2s while the lamp's intensity ramps 0 → 1 (power2.inOut). Then H1 lines rise with clip-path inset(100% 0 0 0) → inset(0) over 1.0s, stagger 0.12s, starting at 0.4s.
- Idle life (not scroll-bound): the head breathes ±1.2° with sin(t·0.6), and the camera eases toward the pointer by up to ±0.15 units (lerp 0.05; desktop only).
- --light CSS variable written from the current 3D light color whenever it changes by more than 1/255 per channel. UI accents recolor in sync with the lamp.
- Header progress line: scaleX bound to overall scroll progress, color var(--light).
- Rhythm chapter SVG day curve: stroke-dashoffset scrubbed from full length to 0 across the chapter, with a marker dot following the path.
- Buttons: 200ms transition on box-shadow and transform. Hover adds a var(--light) glow and translateY(-1px).
- prefers-reduced-motion: no Lenis, no scrub, no idle motion, no dust drift, no reveals (content visible immediately). An IntersectionObserver (threshold 0.5) snaps the state to each section's keyframe instantly, and the scene renders only when state changes.
## Imagery
No bitmaps at all. The only visual is the real-time three.js scene: a graphite metal lamp with matte arms on a near-black floor in exponential fog, lit by its own spotlight. A volumetric cone, a bloom halo on the diffuser, faint dust motes and a soft light pool on the floor. A cool rim light outlines the silhouette from behind. UI graphics (wordmark mark, arrows, chapter dots, day-curve chart, favicon) are inline SVG drawn in code.
## Tone
Quiet, confident and precise. Short declarative headlines, concrete numbers, no exclamation marks and no hype words. It should feel like a film title sequence crossed with an engineering datasheet.
---
— Prompt by VibeFather · https://vibefather.ai/t/3d-product-launch-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 众筹硬件团队:将 BRAND 和 PRODUCT_NAME 设置为你的设备,将预订链接放在预购区块后面,并围绕你的活动里程碑重写四个章节。
- 影棚灯光制造商:保留台灯几何体,但加宽灯头并将颜色停靠点转向日光和钨丝灯,然后用你的输出和色温数据重写规格表。
- 销售植物生长灯的植物护理品牌:将 PRODUCT_TYPE 设置为室内生长灯,围绕光谱和日程重命名章节,并将 AUDIENCE 指向家庭种植者。
- 工业设计师的作品集:将 BRAND 设置为你的工作室,用项目详情替换 PRICE 和 SHIP_WINDOW,并用四个章节来阐述你的设计决策。
3D 产品发布页:常见问题
如何把台灯改成其他产品,比如植物生长灯或阅读灯?
3D 产品发布页在场景代码中用简短的、带注释的常量构建台灯,因此你调整的是几何体而非替换模型文件。更改底座、灯臂和灯头的比例以及光线移动的颜色停靠点,然后在内容文件中重写章节文案以匹配。布局、滚动关键帧和 UI 强调色保持不变。
我可以用 3D 产品发布页做众筹预购活动吗?
3D 产品发布页正是为此而建:一个包含四个功能章节、细线规格表和预购行动号召的单页发布网站。在内容文件中设置 BRAND、PRODUCT_NAME、PRODUCT_TYPE、PRICE、SHIP_WINDOW 和 AUDIENCE,然后围绕你的活动重写 Focus、Warm、Night 和 Rhythm 章节。预购区块只是静态 UI,因此请将其连接到自己的预订或邮件列表。
怎么用 AI 做一个3D 产品发布页?
复制本页的完整提示词(Pro),或者运行 npx vibefather add 3d-product-launch-page,把 [BRAND]、[PRICE]、[AUDIENCE]、[SHIP_WINDOW] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
3D 产品发布页模板的演示是哪个 AI 模型做的?
演示由 Claude Opus 5.5 在 Claude Code 里完成;另一个案例由 Gemini 4 Carbon 在 Cursor 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。