Papercraft 3D 落地页是一个单页应用发布网站,舞台被设计成剪纸立体模型。首屏是黄金时刻的山坡小镇,由赤陶色、鼠尾草绿和阳光黄的分层纸张搭建而成,标题和注册按钮置于天空之上。页面加载时,一张平整的信纸会一个折痕接一个折痕地把自己折成一架纸飞机,将一个小信封塞进机翼下方,然后等待出发。从那里开始,滚动条就是飞行路线:纸飞机在黄昏时越过连绵山丘,在夜晚从桥下穿过,在日出时环绕一个集市广场,乘着上升气流飞越海湾,并在出发整整一天后降落在灯塔信箱。五个站点各自对应一个页面区块:工作原理、邮票与信纸、定价、示例信件和注册,全部绘制成纸质物件,比如折叠的便签卡、带齿孔的邮票张和展开的手写信。
它适合独立开发者和正在发布消费级应用、订阅服务或任何有故事可讲的产品的小团队,也适合想要一个 3D 展示作品、同时仍然读起来像普通落地页的设计师。默认内容是一个慢递笔友应用;替换文案后,同一个世界也适用于配送俱乐部、旅行产品或课程。
纸张质感来自一个小型着色器:纤维颗粒、清晰的折痕、温暖的反弹光以及硬朗的剪纸阴影,完全不使用位图图像。动效与滚动绑定,并在提示词中命名,每个折叠和降落都有时长和缓动。手机会获得一个更轻量的场景,但故事相同;不支持 WebGL 或开启了减少动态效果的访客会看到插画式的站点。要适配它,修改六个变量、重写内容文件,并保留五色调色板。
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Papercraft 3D Landing Page
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A one-page landing site for [BRAND], [PRODUCT]. The whole page is a folded-paper world rendered in WebGL behind the HTML: a full-viewport canvas shows a cut-paper diorama, and the page sections scroll over it as paper objects. The first screen is [TOWN], a paper hillside town at golden hour, already colourful in the very first frame. On load a flat sheet of stationery folds itself into a paper plane and takes [CARGO] on board; scrolling then flies the plane along one continuous path through five stops (layered hills, a river, a market square, a coast, a lighthouse), and each stop is one section: how it works, stamps and stationery, pricing, letters from members, sign-up. The scroll journey is also one full day: the sky runs from golden hour through night and sunrise back to golden hour, so the visitor watches a letter take exactly a day to arrive. Build it so that any single frame, paused anywhere, looks like a finished poster.
- Audience: [AUDIENCE]. They are deciding in a few seconds whether this is a toy or a product, so the scene must charm them and the sections must still answer the plain questions: what is it, how does it work, what does it cost, how do I start.
- Goal: Get the visitor to the sign-up form at the lighthouse and have them press [PRIMARY_CTA]. The same button sits in the hero and the header and scrolls to that form.
- Tone: Warm, unhurried and specific. Short sentences, plain words, a little dry humour about waiting. Never cute for the sake of it and never techy: no mention of 3D, shaders or how the page was made.
## Stack
- Framework: Vite 5 + vanilla TypeScript
- Styling: Vanilla CSS, custom properties
- Libraries: three 0.187 (WebGL renderer, custom ShaderMaterial, BufferGeometryUtils from three/addons) (MIT), gsap 3.15 with its ScrollTrigger plugin (Standard no-charge GSAP license (free, commercial use allowed)), lucide (icons) (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/figtree (OFL-1.1), @fontsource-variable/caveat (OFL-1.1), vite 5.4 and typescript 5.6 (dev only) (MIT / Apache-2.0)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- package.json scripts: dev = vite, build = vite build, preview = vite preview. vite.config.ts sets base to './', build.sourcemap to false and build.target to es2020.
- Files: index.html (markup for every section plus the inline hero poster SVG), src/main.ts, src/content.ts (every word of copy, the stop names, prices, stamps and letters, built from the variables), src/styles.css, src/scene/ (stage.ts, paperMaterial.ts, shaders/paper.vert.glsl and paper.frag.glsl imported with ?raw, shapes.ts, plane.ts, path.ts, sky.ts, stops/town.ts, hills.ts, river.ts, square.ts, cove.ts, light.ts), src/ui/ (header.ts, panels.ts, stamps.ts, pricing.ts, signup.ts, sound.ts, posters.ts).
- Fonts: import '@fontsource-variable/fraunces/full.css' and '@fontsource-variable/fraunces/full-italic.css' (these include the opsz, SOFT and WONK axes), '@fontsource-variable/figtree' and '@fontsource-variable/caveat' in main.ts. CSS family names are 'Fraunces Variable', 'Figtree Variable' and 'Caveat Variable'.
- Put the five core colours and six supporting shades in :root as CSS custom properties and export the same hex values from src/scene/palette.ts; the scene and the HTML read from these two places only.
- Renderer: new WebGLRenderer({ antialias: true, alpha: false, powerPreference: 'high-performance' }), outputColorSpace SRGBColorSpace, toneMapping NoToneMapping, no shadow maps, no post-processing. The paper fragment shader ends with the colorspace_fragment include so a sheet in full light renders within 4% of its hex value.
- Register ScrollTrigger once with gsap.registerPlugin and call ScrollTrigger.config({ ignoreMobileResize: true }). Scrolling is native: no smooth-scroll library, no pinning, no wheel or touch handlers that prevent default.
- All scattered details (tree positions, star positions, stamp tilts, grain offsets) come from one seeded pseudo-random generator (mulberry32, seed 6401) so every build and every reload looks identical.
- All landscape silhouettes are defined once in src/scene/shapes.ts as arrays of 2D points. The 3D layers turn them into THREE.Shape and ShapeGeometry; src/ui/posters.ts turns the same arrays into inline SVG for the static fallback. Flat sheets of one layer in one stop are merged into a single geometry with vertex colours so each layer is one draw call.
- Icons: import only the icons listed under Assets from the lucide package and render them as inline SVG with stroke-width 1.75; if the installed version's createIcons API differs, copy those icons' SVG markup from the package instead.
- Write ASSETS.md at the project root listing the three font packages, lucide, three and gsap with source URL, author and license, and stating that every image, stamp, poster and sound is drawn or synthesized in code.
## Variables
- [BRAND] — Brand name (default: "Dayfold"). Invented product name; shown in the header wordmark, the hero and the footer.
- [PRODUCT] — What it is (default: "a slow-mail pen-pal app where every letter takes one day to arrive"). One clause that completes the sentence '[BRAND] is ...'.
- [AUDIENCE] — Who it is for (default: "people who miss finding a real letter in the mailbox"). Completes 'For ...' in the hero eyebrow.
- [CARGO] — What the paper plane carries (default: "a letter"). The thing that travels from the first screen to the last stop. It is drawn as a small terracotta paper parcel on the plane's back.
- [TOWN] — Name of the paper town (default: "Larkhollow"). Invented place name for the hero town. Never a real place.
- [PRIMARY_CTA] — Main button label (default: "Claim your mailbox"). 2 to 4 words; used in the header, the hero and the sign-up form.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/papercraft-3d-landing-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 仍然免费。
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Papercraft 3D Landing Page"
colors:
paper_white: "#F6F1E7"
terracotta: "#D9653B"
sage: "#8FA98A"
ink_navy: "#1F2A44"
sunshine: "#F2C14E"
terracotta_deep: "#B24E2A"
sage_deep: "#6F8C6B"
navy_deep: "#141C30"
navy_lift: "#2C3B5E"
sunshine_pale: "#F8DC8F"
paper_shade: "#E4DCCB"
typography:
display_hero_headline_section_headings_prices_the_wordmark_fraunces_variable_with_font_variation_settings_opsz_144_soft_100_wonk_1_so_the_letters_look_cut_from_soft_paper_hero_h1_weight_700_clamp_44px_6_2vw_96px_line_height_0_95_letter_spacing_0_02em_section_h2_weight_650_clamp_32px_3_6vw_52px_line_height_1_02_italic_is_used_for_one_emphasised_word_per_heading_fallback_stack_georgia_serif: { family: "Fraunces Variable", weights: [500, 650, 700] }
text_body_copy_17px_1_55_16px_on_phones_labels_and_buttons_15px_weight_650_small_caps_labels_12px_weight_700_with_0_12em_letter_spacing_in_uppercase_fallback_stack_system_ui_sans_serif: { family: "Figtree Variable", weights: [400, 500, 650, 700] }
handwriting_the_sample_letters_24px_1_35_stamp_names_the_clock_chip_in_the_header_and_margin_notes_never_used_for_body_copy_or_anything_under_18px: { family: "Caveat Variable", weights: [500, 700] }
spacing: "8px base unit. Content columns are 560px wide on desktop (pricing: min(920px, 64vw)), set 6vw in from the left or right viewport edge so the other side of the scene stays open for the plane. Cards have 28px padding (20px on phones) and 20px gaps. Every stop section is an empty flight gap (70vh on desktop, 50vh on phones) followed by its content panel (min-height 100vh, content vertically centred on desktop, natural height on phones with 16px side gutters). The header strip is 60px tall (52px on phones)."
radius: "Paper has corners: 2px on cards, notes, inputs and buttons. One 22px folded corner (a clip-path dog-ear showing terracotta deep or sage on the turned-up side) on the top-right of each card and the primary button. Stamps have perforated edges made with a radial-gradient mask. Full circles only for the clock chip, the sound toggle and postmarks. Shadows are hard offsets, never blurred: 6px 8px 0 rgba(31,42,68,0.18) on cards, 3px 4px 0 on buttons and stamps."
---
# Papercraft 3D Landing 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
- **Paper white** `#F6F1E7` — The sheet colour: house walls, the sun and moon discs, clouds, the plane's outer face, and every HTML card, note and header strip. It is never used as an empty page or hero background.
- **Terracotta** `#D9653B` — Roofs, the far ridge at golden hour, awning stripes, the bridge, lighthouse bands, the cargo envelope, folded card corners and the squiggle under the headline. As text only at 24px or larger on paper white.
- **Sage** `#8FA98A` — Hills, trees, reeds, the sunrise sky, ruled lines on stationery, secondary tags and quiet borders.
- **Ink navy** `#1F2A44` — All body text and headings, doors, night sky, water, hard drop shadows (at 18% opacity) and focus rings.
- **Sunshine** `#F2C14E` — The golden-hour sky, lit windows, the lighthouse lamp, pennants, the primary button fill (with ink navy text) and the featured pricing ribbon.
- **Terracotta deep** `#B24E2A` — Supporting shade: shadow side of roofs and the bridge, the inside of folded corners.
- **Sage deep** `#6F8C6B` — Supporting shade: back hills, cone trees, foreground grass.
- **Navy deep** `#141C30` — Supporting shade: the top of the night sky and the nearest foreground frame at night.
- **Navy lift** `#2C3B5E` — Supporting shade: second water band, night horizon.
- **Sunshine pale** `#F8DC8F` — Supporting shade: halo rings around the sun, underside of clouds, the midday horizon.
- **Paper shade** `#E4DCCB` — Supporting shade: 1px edges of paper cards, the shaded half of an unfolding note, perforation shadows.
## Typography
- **Display: hero headline, section headings, prices, the wordmark. Fraunces Variable with font-variation-settings 'opsz' 144, 'SOFT' 100, 'WONK' 1, so the letters look cut from soft paper. Hero h1 weight 700, clamp(44px, 6.2vw, 96px), line-height 0.95, letter-spacing -0.02em; section h2 weight 650, clamp(32px, 3.6vw, 52px), line-height 1.02; italic is used for one emphasised word per heading. Fallback stack: Georgia, serif.** — Fraunces Variable (OFL), weights 500/650/700. Self-host the font files.
- **Text: body copy 17px/1.55 (16px on phones), labels and buttons 15px weight 650, small caps labels 12px weight 700 with 0.12em letter-spacing in uppercase. Fallback stack: system-ui, sans-serif.** — Figtree Variable (OFL), weights 400/500/650/700. Self-host the font files.
- **Handwriting: the sample letters (24px/1.35), stamp names, the clock chip in the header and margin notes. Never used for body copy or anything under 18px.** — Caveat Variable (OFL), weights 500/700. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Content columns are 560px wide on desktop (pricing: min(920px, 64vw)), set 6vw in from the left or right viewport edge so the other side of the scene stays open for the plane. Cards have 28px padding (20px on phones) and 20px gaps. Every stop section is an empty flight gap (70vh on desktop, 50vh on phones) followed by its content panel (min-height 100vh, content vertically centred on desktop, natural height on phones with 16px side gutters). The header strip is 60px tall (52px on phones).
- Radius: Paper has corners: 2px on cards, notes, inputs and buttons. One 22px folded corner (a clip-path dog-ear showing terracotta deep or sage on the turned-up side) on the top-right of each card and the primary button. Stamps have perforated edges made with a radial-gradient mask. Full circles only for the clock chip, the sound toggle and postmarks. Shadows are hard offsets, never blurred: 6px 8px 0 rgba(31,42,68,0.18) on cards, 3px 4px 0 on buttons and stamps.
## Motion
- First paint: the hero poster is part of the HTML, so the town is on screen with the first paint. The WebGL canvas cross-fades in over it in 400ms (linear opacity) as soon as its first frame is drawn, which must happen within 2 seconds of navigation start; only the town stop is built before that frame, the other five stops are built afterwards in idle slices, one per slice. There is no loader, spinner, progress bar or start button anywhere.
- The fold starts 400ms after the first WebGL frame and runs 2.4s as one GSAP timeline of six beats: lift 300ms power2.out; left corner 320ms power2.inOut; right corner 320ms power2.inOut, starting 120ms after the left one; both shoulders together 420ms power2.inOut; tuck the cargo 280ms power1.out; close the spine 380ms power3.inOut; drop the wings 360ms back.out(1.6). Then a 700ms power3.out launch glides the plane back to its flight lane. Each beat is a hinge rotation about a visible crease. It plays once per page load. Any scroll, wheel, touch or key press during it raises the timeline's timeScale to 5 so it finishes in under half a second.
- Scroll-driven flight: each of the five legs is a ScrollTrigger scrubbed with scrub 0.8 (0.8s catch-up), mapping scroll to the path parameter through power2.inOut so the plane leaves each stop slowly, flies fastest mid-leg and slows into the next stop. Scrolling up flies the same path backwards.
- Camera and plane follow with frame-rate-independent damping, value += (target - value) * (1 - exp(-6 * dt)). The plane banks into turns: roll is proportional to path curvature, clamped to 28 degrees; pitch follows the path tangent.
- Section stops: when a leg reaches 92% the plane flares (pitch up 8 degrees, then level) over 600ms power2.out and the stop's paper objects arrive: each card unfolds from rotateX(-88deg) about its top edge to flat in 620ms cubic-bezier(0.22, 1, 0.36, 1) with a 90ms stagger, under a 900px perspective. Leaving, cards fade and rise 12px in 240ms ease-in. These are triggered, not scrubbed, and reverse when scrolling back.
- Hover while parked at a stop: the plane bobs 0.12 units up and down on a 2.4s sine.inOut yoyo and rolls 2.5 degrees on a 3.1s one, so it reads as waiting, plus a drift of 8% of the next leg tied to scroll so it never freezes while the visitor reads.
- Wind: bunting, flags, reeds, chimney smoke and the pinwheel lean and sway toward the direction of travel, 2 degrees about their base on 3.2 to 4.8s sine loops. The wind is what carries the plane, so it always points along the route. Waves slide 0.3 units sideways on a 4s sine loop. Nothing else in the scene moves on its own: no floating particles, no spinning props.
- Cursor parallax (fine pointers only): the camera shifts up to 0.5 units horizontally and 0.3 vertically toward the pointer with the same damping at rate 3.5, so the paper layers slide against each other by depth.
- Sky: the three sky sheets, the tint on the scenery and the sun and moon positions interpolate linearly with the path parameter between the six stop keyframes; they have no timing of their own.
- Interface: buttons lift 2px and their hard shadow grows from 3px 4px to 5px 6px in 160ms ease-out, and press down 2px in 80ms. Stamps settle from an 8-degree tilt and scale 1.08 to rest in 420ms cubic-bezier(0.34, 1.56, 0.64, 1) with a 45ms stagger. Price figures flip on rotateX in 300ms cubic-bezier(0.22, 1, 0.36, 1) when the billing toggle changes. The header's plane marker slides to the current stop in 500ms power2.out.
- prefers-reduced-motion: no WebGL, no scrubbing, no fold. The page shows the illustrated posters, and panels fade in with a 200ms opacity change only.
## Imagery
A cut-paper diorama at golden hour, drawn entirely in code. Every landscape is a stack of flat paper silhouettes at different depths with scalloped or gently wavy cut edges; buildings, the plane, the bridge, the boats and the lighthouse are folded from a few flat facets. One shared paper shader gives every surface fine fibre grain (value varies by about 3%), a hairline paper-white highlight along top cut edges to suggest thickness, a dark crease line with a light line beside it along folds, and soft warm bounce light: the lower part of each sheet picks up up to 18% of the colour of the sheet in front of it. Shadows are crisp offset copies of each sheet in ink navy at 18% opacity, like paper lifted off the page; there are no shadow maps, no gloss, no metal, no glass, no bloom and no depth-of-field blur. The mood is tactile, handmade and sunny. The HTML cards carry the same language: paper white with a faint grain (an inline SVG turbulence filter at 6% opacity), a 1px paper-shade edge, a hard offset shadow and one folded corner. Stamps, postmarks, the wordmark's plane glyph and the favicon are small flat SVG drawings in the same five colours.
## Tone
Warm, unhurried and specific. Short sentences, plain words, a little dry humour about waiting. Never cute for the sake of it and never techy: no mention of 3D, shaders or how the page was made.
---
Inspired by Folded-paper 3D scroll journey landing page for a slow-mail pen-pal app by @thatxliner — https://news.ycombinator.com/item?id=48548167
— Prompt by VibeFather · https://vibefather.ai/t/papercraft-3d-landing-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
Papercraft 3D 落地页是一个单页网站,包含五个滚动站点,每个站点充当一个区块:工作原理、邮票与信纸、定价、示例信件和注册。纸飞机从山坡小镇出发,穿过层层山丘、一条河流、一个集市广场和一片海岸,最终降落在灯塔信箱。首屏、页头和注册表单共用同一个主按钮,点击后会滚动到最后一个站点的表单。
将 Papercraft 3D 落地页用于商业用途或客户项目需要 Pro。Pro 模板会公开展示项目简介、技术栈和变量,并向 Pro 会员提供完整提示词和演示的源代码。免费提示词和 VibeFather 上的所有 DESIGN.md 仅授权用于个人非商业用途,因此客户发布需要 Pro 访问权限。
先从六个变量开始:品牌名称、产品描述、目标受众、货物、小镇名称和主按钮标签。然后重写内容文件,让每个标题、段落、标签、价格、邮票和示例信件都符合你的产品,同时保持相同的长度和语气。五色调色板和五个滚动站点保持不变,这样纸艺世界就能保持其形态。
是的。Papercraft 3D 落地页会检测不支持 WebGL 或启用了减少动态效果的访客,并显示插画式站点,而不是动画 3D 场景。这些回退方案使用与 3D 图层相同的景观形状绘制为内联 SVG,因此页面仍然讲述纸飞机的旅程故事,并且注册表单在所有设备上仍然可以访问。
Papercraft 3D 落地页的演示是用 Claude Code 中的 Claude Fable 5.2 构建的。发布的提示词是为能够用 TypeScript、Three.js、GSAP 和原生 CSS 搭建 Vite 项目的 AI 编程代理编写的,因此 Codex、Cursor、Windsurf、Gemini CLI 或 GitHub Copilot 等代理也可以运行它。VibeFather 的模型对比页面展示了其他演示是由哪些代理构建的。
复制本页的完整提示词(Pro),或者运行 npx vibefather add papercraft-3d-landing-page,把 变量 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
演示由 Claude Fable 5.2 在 Claude Code 里完成。每次都用公开的提示词原样生成,没有额外补充。
Papercraft 3D 落地页是一个单页网站,用 GSAP、纯 HTML、Three.js 构建。提示词固定了技术栈,不同 AI 工具做出来的都是同一类项目,成品是静态网站,部署到哪里都可以。
Papercraft 3D 落地页是 Pro 模板:说明、技术栈和变量公开,完整提示词、在线演示的源码和商用授权包含在 VibeFather Pro 里,支持支付宝和微信支付。它的 DESIGN.md 个人项目可以免费用。
能。每个Papercraft 3D 落地页的演示上线前都在手机和电脑尺寸上检查过布局、字号和点击区域。可以直接用手机打开在线演示,或者在本页把预览切到手机视图看看。