加载中…
创作者 · MotionSites
复刻提示词保留原文,另附运行环境、素材与验收要求;附加说明不是原作者原话。
# Butterly — spinning 3D cookie-tin scroll page: exact recreation prompt
Build a single-file landing page (one index.html with inline CSS and JS, plus an assets folder) for a fictional butter-cookie brand called Butterly. It is a four-section scroll story on a saturated cobalt-blue stage. One real 3D object, an embossed cobalt butter-cookie tin with its lid floating open and a pile of golden cookies inside, is rendered with three.js in a fixed full-screen transparent canvas. It turns continuously like a turntable and glides between four poses as the page scrolls, so the same tin is the hero of every section. Everything below must be matched exactly.
## 1. Assets
| Asset | URL / file | Use |
|---|---|---|
| 3D tin model | assets/butterly-tin.glb (2.6 MB, meshopt-compressed glTF binary, one mesh, one PBR material with base colour, ORM and normal maps as 2048 px WebP, about 238k triangles). The standalone file embeds the same GLB as base64. Origin: Tripo H3.1 image-to-3D result https://d8j0ntlcm91z4.cloudfront.net/user_38xzZboKViGWJOttwIXH07lWA1P/hf_20261128_094623_3e4d44e9-080f-4a86-985b-fe6f2a70d62b.glb (raw 65 MB, before texture fixes and compression) | The pinned, spinning product |
| Cookie sprite sheet (transparent PNG, 2×2 grid) | https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20261128_114611_150bd0f9-bc3b-4bf7-bdca-21128457943a.png&w=1024&q=85 | Four floating hero cookies (CSS background-position crops) and the second thumbnail |
Sprite cells: top-left is a round piped Danish swirl cookie, top-right a sugared pretzel-shaped butter cookie, bottom-left a round flat cookie with radial ridges and a centre dot, bottom-right a second pretzel cookie with a few crumbs. Each crop uses background-size 200% 200% and background-position 0 0, 100% 0, 0 100% and 100% 100% respectively, with no repeat.
How the GLB was prepared (only needed if you regenerate it): a GPT Image 2.5 turnaround sheet of the tin; its front view fed to Tripo H3.1 image-to-3D (detailed geometry, detailed texture, PBR). Then the textures were edited per pixel. The cream lid band became non-metal (ORM blue channel about 10/255, roughness about 120/255) with a slightly warm cream tint. The gold trim got warmer and shinier (R ×1.08, B ×0.55, metal 250, roughness 70). The cobalt paint was capped at 0.55 metalness with roughness between 60 and 110. Saturated, non-metal cookie pixels were warmed (R ×1.04, G ×0.93, B ×0.62). Finally: weld, simplify to 12% (error 0.0004), recompute area-weighted smooth normals by position (keep the original normal where the dot product is below 0.5), textures resized to 2048 WebP at quality 0.9, meshopt.
## 2. Fonts (self-hosted latin woff2 from Google Fonts)
| Role | Family | Weight | File |
|---|---|---|---|
| Display: headlines, pills, buttons, price, ribbon text | Sour Gummy | 900 | assets/fonts/SourGummy-900.woff2, font-display block |
| Wordmark (logo, and the label painted on the 3D tin) | Kaushan Script | 400 | assets/fonts/KaushanScript-400.woff2, font-display block |
| Body, UI labels | DM Sans (variable) | 400–700 | assets/fonts/DMSans-var.woff2, font-display swap |
The display class (.disp) uses Sour Gummy 900 with letter-spacing −0.01em. Preload the Sour Gummy font and the GLB.
## 3. Colour tokens
| Token | Hex | Used for |
|---|---|---|
| --stage | #1F5FE0 | Main cobalt stage and body background |
| --glow | #4C86F5 | Soft centre glow (applied as rgba(86,145,250,.95) → rgba(76,134,245,.55) → transparent) |
| --deep | #0B2E8A | html background, deep edge tone |
| side vignette | #123FA6 | Left and right edge darkening, 0–24% and 76–100% of width |
| --cream | #F4EFE4 | Ribbon and wave bands |
| --ink | #071A4D | Dark pills and buttons, stepper discs |
| --mark | #1A4FD6 | Ribbon marquee text |
| label blue | #1A3FA8 | Wordmark painted on the 3D tin label |
| text | #FFFFFF | All headlines and copy (paragraphs at 94% opacity) |
## 4. Scaling system
- Desktop unit: --u = min(100vw/1440, 100vh/900), so one design pixel on a 1440×900 frame.
- Small-screen unit (below 820 px wide or aspect ratio below 4/5): --u = min(100vw/390, 100vh/844).
- Every size below is written in u (multiply by --u). Positions given in % or vh are relative to the section.
- Each section is 100vh tall: min-height 620 px on desktop, 560 px on small screens. Overflow is hidden for the hero and section 4, and visible for sections 2 and 3, so the ribbon and wave can cross section edges.
- Sections must not set a z-index, so their children share the root stacking order:
- section backgrounds (auto)
- ring (5)
- ribbon and wave (4) above the section backgrounds
- the 3D canvas (fixed, 6)
- text and UI (7)
- nav (8)
- drag handle (9)
## 5. Section backgrounds (vertically seamless)
Each section stacks three layers:
1. A radial glow, sized and positioned per section (table below), going rgba(86,145,250,.95) at 0%, rgba(76,134,245,.55) at 30%, and transparent at 70%.
2. A horizontal side vignette: #123FA6 at 0%, transparent from 24% to 76%, #123FA6 at 100%.
3. A flat #1F5FE0 base.
Because the top and bottom edges are always the flat base, sections join with no seam.
| Section | Glow size (w h) | Glow centre |
|---|---|---|
| Hero | 48% 60% | 50% 46% |
| Section 2 | 44% 62% | 70% 58% |
| Section 3 | 44% 60% | 28% 48% |
| Section 4 | 44% 62% | 70% 55% |
## 6. DOM and desktop layout (1440×900)
### Fixed canvas
A canvas id gl fills the viewport (position fixed, inset 0, z-index 6, pointer-events none, transparent).
### Hero (section id hero, starts with class stagefade: opacity 0, blur 24 px)
**Nav** (absolute; top 40u, height 50u, side padding 56u; flex space-between; z 8):
- Left: the logo "Butterly" in Kaushan Script 50u, white, padding-bottom 6u. Under it, an SVG swash spanning 96% of the logo width from 4% left, 14u tall, 6u below the text. The swash path is M2 11 C60 3 120 2 198 6 C140 5 70 7 6 13 Z, white, in a 200×14 viewBox with preserveAspectRatio none.
- Centre (absolutely centred): two pill links 50u tall, 24u side padding, 10u gap, Sour Gummy 19u. "Products" is white with ink text; "Collection" is ink with white text.
- Right (10u gap): a "SHOP" pill (white, ink text, DM Sans 700 16u, letter-spacing .04em, 50u tall, 24u padding) and a 50u ink circle holding a white outline shopping-bag icon (46% size, stroke 2). The bag has a badge "3": a 24u circle at top −8u and right −8u, #0A0F2C fill, 2 px #1F5FE0 border, white DM Sans 700 12u.
**Vertical headline** (h1, Sour Gummy 76u, line-height .9, white, nowrap):
- Two lines, "Not just" and "butter cookies.", positioned left 40u, bottom 28vh.
- Transform origin left bottom; transform rotate(−90deg) then translateY(100%). It reads bottom to top, "Not just" being the leftmost column, and its bottom starts 28vh above the hero's bottom.
**Floating cookies** (z 7, each with drop-shadow 0 16u 18u rgba(4,20,80,.35)):
| Cookie | Sprite cell | Left | Top | Size | Transform |
|---|---|---|---|---|---|
| c1 | swirl | 22.5% | 15.5% | 165u square | rotate(−8deg) |
| c2 | pretzel | 69.2% | 23% | 170u | rotate(14deg) |
| c3 | ridged | 73.6% | 43.5% | 150u | rotate(−6deg) scaleY(.92) |
| c4 | pretzel with crumbs | 22% | 61.5% | 165u | rotate(−24deg) |
**Orbit ring:**
- An SVG ellipse (viewBox 900×130, rx 447, ry 62), no fill, stroke rgba(255,255,255,.55) at 1.6 px with non-scaling stroke.
- Box 900u × 130u, centred at left 50%, top 70.5%, z 5.
**Drag handle:** a 34u ink circle centred at left 50%, top 76%, z 9, cursor grab. It holds two small white triangles pointing left and right (path M7.5 5.5 3 10l4.5 4.5zM12.5 5.5 17 10l-4.5 4.5z in a 20×20 viewBox, 56% size).
**Thumbnails** (left 48u, top 78%, gap 12u):
- Two 80u squares with radius 16u, background #E9E2D2, 3u border. The active one has a white border.
- Thumbnail 1 is a PNG rendered once from the 3D model at load: a 160 px off-screen renderer, background #EDE6D6, camera at (0, 1.1, 4.2) looking at the origin, the tin rotated (0.1, −1.5, 0) and scaled to 1.55 units high.
- Thumbnail 2 shows the swirl-cookie sprite at background-size 420% and position 3% 4% over #F0C98A.
**Review:** left 48u, top 88%, width 390u, DM Sans 16u, line-height 1.35. Text: “The perfect balance of buttery crisp and melt-in-your-mouth. These are next level!”
**Price:** "$18.99" in Sour Gummy 92u, line-height 1, centred at left 49.5%, top 85.5%.
**Quantity stepper:** centred at left 49.8%, top 94.2%. Three 46u ink circles with a 6u gap: "−", "2" and "+" in white DM Sans 700 20u.
**Arrows:** right 100u, top 75.5%, gap 12u. Two 66u circles:
- Left: 2u border rgba(255,255,255,.85), white left arrow.
- Right: filled white with an ink right arrow (stroke 2.2, round caps, 40% size).
**Size chips:** right 52u, top 84%, gap 8u. Three pills 44u tall, 18u padding, DM Sans 700 16u, 1.5u border rgba(255,255,255,.85), white text, with background, colour and border-colour transitions of .35s:
- "150g": white background, ink text.
- "300g": active, ink background, white text.
- "500g": outline only.
**CTA:** "Taste It" in Sour Gummy 26u. Ink pill 64u tall, 34u padding, right 80u, top 93% (translateY −50%), white text, no underline.
### Section 2 (id s2)
**Ribbon** (absolute, top −30u, full width, height 260u, z 4):
- SVG viewBox 1440×260 with preserveAspectRatio none.
- The band is the path M−260 70 C 120 30, 380 210, 760 190 S 1300 40, 1700 70, stroked #F4EFE4 at width 150 with no fill.
- On that path, a text element with dy 29 holds a textPath with the phrase "share anywhere with Butterly — " repeated five times, in Sour Gummy 900 82 px, fill #1A4FD6.
**Copy block** (absolute, left 56u, top 54%, translateY −50%, width 520u, z 7):
- h2 "Discover the / crunch in / every bite." in Sour Gummy 78u, line-height .95, margin-bottom 26u.
- Paragraph in DM Sans 19u, line-height 1.42, max-width 430u, margin-bottom 34u, white at 94%: "Golden, buttery and slow baked in small batches. Butterly cookies bring a little more joy to your day. Share them, gift them, or keep them all to yourself."
- Button "Discover": ink pill 58u tall, 32u padding, Sour Gummy 22u, white, scale 1.04 on hover over .5s cubic-bezier(.22,1,.36,1).
### Section 3 (id s3)
**Copy block:** left 56.5%, top 47%, width 600u.
- h2 "A crumb that / feels different".
- Paragraph: "Real butter, a pinch of sea salt and nothing artificial. Every ring, swirl and pretzel is piped by hand, then baked until the edges turn golden."
- Button "Find a Store".
**Wave** (absolute, bottom −150u, full width, height 300u, z 4, so it straddles the section 3 / section 4 boundary):
- SVG viewBox 1440×300 with preserveAspectRatio none.
- Path M−80 150 C 140 60, 330 40, 560 110 S 980 250, 1180 170 S 1420 40, 1540 80, stroked #F4EFE4 at width 130 with round caps and no fill.
### Section 4 (id s4)
**Copy block:** left 56u, top 55%, width 520u.
- h2 "Designed to / be seen. Not / just eaten.".
- Paragraph: "An embossed cobalt tin with gold trim that keeps every cookie crisp, then stays on the shelf long after the last crumb is gone."
- Button "Explore tin" (links back to the hero).
All in-page links scroll smoothly with Lenis scrollTo over 1.6 s.
## 7. The 3D tin (three.js 0.160.0, from jsDelivr through an import map)
**Renderer:**
- WebGLRenderer with antialias, alpha and powerPreference high-performance; pixel ratio min(devicePixelRatio, 2).
- SRGB output colour space, ACES Filmic tone mapping, exposure 1.15.
**Lighting:**
- Environment from PMREMGenerator.fromScene(new RoomEnvironment(), 0.04).
- Key DirectionalLight #ffffff at intensity 1.2 from (2, 3, 4).
- Rim DirectionalLight #9EC0FF at 0.9 from (−3, 1.5, −2).
**Camera:** PerspectiveCamera with fov 28 at (0, 0, 10), aspect equal to the viewport.
**Loading:** GLTFLoader with MeshoptDecoder.
- Centre the model on its bounding-box centre and record its height as modelH.
- Material: envMapIntensity 1.25, metalness factor 1, roughness factor 1 (the ORM map carries the real values).
**Hierarchy:**
- A "place" group handles screen position, scale, roll (rotation z) and pitch (rotation x).
- Inside it, a "spin" group is the turntable (rotation y).
- Inside that, the model.
- On load, spin.rotation.y = −1.5 so the label faces the viewer as it arrives.
**Clean wordmark label (decal over the model's garbled one):**
- Wait for the Kaushan Script font.
- Placement, all in the mesh's local space and found by ray-casting the model:
| Value | Vector |
|---|---|
| Label centre | (0.8797, 0.6389, 0.1653) |
| Outward normal | (0.975, 0.12, 0.16), normalised |
| Band up | (−0.19, 0.98, 0), normalised |
- Build an orthonormal basis: z is the normal; x = up × z; y = z × x.
- Create a DecalGeometry on the mesh at the world-space centre, oriented by that basis, sized (1.0, 0.42, 0.24) × the mesh's world scale.
- Keep only triangles whose summed vertex normals dot the projector z by more than 0.9.
- Replace every decal normal with normalize(z + x × lateral × 1.6), where lateral is the vertex's offset from the centre along x. This flattens the old relief lettering under the label.
- Texture: a 1024×400 canvas.
- Fill with a vertical gradient from #F3EDE0 to #E9E1D0.
- Write "Butterly" in Kaushan Script 170 px, #1A3FA8, centred at (512, 186), rotated −0.06 rad.
- Draw a swash under it: a filled bezier from (250,300) via (420,262) and (640,256) to (800,262), back via (640,266) and (430,276) to (262,316).
- Feather the alpha linearly over 50 px at the left and right edges and 34 px at the top and bottom.
- Material: MeshStandardMaterial, transparent, roughness .42, metalness 0, envMapIntensity 1.1, polygonOffset factor −4, depthWrite off. Add it as a child of the spin group.
**Screen-space poses.** x and y are the tin's centre as a fraction of the viewport, h is the tin's height as a fraction of viewport height, and roll and pitch are in degrees. They were measured from the reference reel.
| Anchor | Desktop x | y | h | roll | pitch | Small-screen x | y | h |
|---|---|---|---|---|---|---|---|---|
| Hero | .50 | .47 | .50 | 7 | 16 | .60 | .33 | .27 |
| Section 2 | .73 | .60 | .74 | 12 | 10 | .55 | .74 | .34 |
| Section 3 | .27 | .50 | .56 | −5 | −4 | .45 | .72 | .31 |
| Section 4 | .70 | .55 | .66 | 20 | −14 | .55 | .75 | .34 |
Small screens use the same roll and pitch. Positive pitch tips the top toward the camera (you see the cookies). Negative pitch shows the underside, as in the reference's last section.
**Scroll mapping, every frame:**
1. Read y from Lenis (or scrollY), and the offsetTop of each section.
2. Find segment i, where y lies between top[i] and top[i+1] (capped at the last segment).
3. Compute u = (y − top[i]) / (top[i+1] − top[i]), clamped to 0..1.
4. Compute k = easeInOutCubic(clamp((u − .04) / .68)). The tin finishes its move in the first ~70% of each scroll step, before the next section's text settles.
5. Interpolate every pose value between anchor i and i+1 by k.
6. Past section 4's top, subtract (y − top[3]) / innerHeight from y so the tin scrolls away with the page.
7. Damp the displayed pose toward the target with factor 1 − exp(−dt × 7.5).
8. Convert to world space:
- visible height vh = 2 × tan(fov/2) × 10, and vw = vh × aspect
- place.position = ((x − .5) × vw, −(y − .5) × vh, 0)
- place.scale = h × vh / modelH
- place.rotation = (pitch, 0, roll), converted to radians
Everything is scrubbed, so scrolling up plays it all in reverse.
**Turntable:**
- Target angular speed is 2π / 4 rad/s (one turn every 4 s). The reference reel turns once about every 2.5 s, but the reel is sped up.
- The speed eases toward the target with factor 1 − exp(−dt × 2.2).
- Arrow buttons add a ±π/2 nudge, applied with factor 1 − exp(−dt × 6).
- Dragging the handle: pointer capture; rotation.y += dx × 0.012, and the speed is set to dx × 0.012 × 60 so it coasts and then settles back to the auto-spin.
- dt is capped at 0.05 s.
## 8. Opening animation (once on load, after the GLB is ready; failsafe start after 6 s)
| Time (s) | Element | Motion |
|---|---|---|
| 0 → 0.48 | Hero section | opacity 0 → 1 and blur 24 px → 0, ease-out (Web Animations API, then the class is removed) |
| 0.30 → 1.05 | 3D tin | rises from 0.95 viewport heights below its hero pose to the pose, easeOutCubic, already spinning |
| 0.35 → 0.80 | Nav, vertical headline, thumbnails, review, arrows, size chips, CTA, ring, handle | opacity 0 → 1, .45 s ease-out |
| 0.70 → 1.25 | Four cookies | opacity 0 → 1 (.4 s) and scale .6 → 1 (.55 s cubic-bezier(.34,1.56,.64,1), a soft overshoot pop) |
| 1.15 → 1.65 | Price | slides up 40u and fades in, .5 s cubic-bezier(.22,1,.36,1) |
| 1.25 → 1.75 | Stepper | the same as the price, 0.1 s later |
## 9. Other motion and interactions
- **Ribbon marquee:** after fonts load, the length of one phrase = the text's computed length ÷ 5. Every frame, startOffset −= 70 px/s × dt, wrapped by that length, so the text flows along the curve endlessly.
- **Section text reveals:** the h2, paragraph and button of each section start at opacity 0, translateY 26u and blur 8 px. When 45% of the copy block is visible (IntersectionObserver, once), they transition to normal over 1 s cubic-bezier(.22,1,.36,1), with delays of 0, .12 and .24 s.
- **Smooth scroll:** Lenis 1.1.13 (jsDelivr UMD), duration 1.15, easing min(1, 1.001 − 2^(−10t)), smoothWheel on. Call lenis.raf(now) inside the page's own requestAnimationFrame loop (this Lenis version ignores autoRaf).
- **UI states:** stepper −/+ clamps the quantity between 1 and 9; size chips are single-select (the active one turns ink); thumbnails are single-select (the active one gets a white border); CTA and buttons scale 1.04 on hover.
## 10. Small-screen layout (below 820 px wide, or portrait aspect below 4/5; units in u of the 390×844 frame)
**Nav:** top 18u, height 36u, side padding 16u. Logo 24u. Pills 30u tall, 10u padding, 11.5u text, 5u gap. SHOP 30u tall, 10u padding, 10.5u text. Cart 30u; badge 17u, 9u text, offset −5u.
**Headline:** left 14u, bottom 38vh, 50u.
**Cookies:**
| Cookie | Left | Top | Size |
|---|---|---|---|
| c1 | 38% | 12.5% | 80u |
| c2 | 79% | 15% | 76u |
| c3 | 80% | 41% | 66u |
| c4 | 31% | 44% | 76u |
**Ring and handle:** ring at left 62%, top 50.5%, 250u × 56u; handle at left 62%, top 54%, 28u.
**Price and stepper:** price at left 60%, top 60.5%, 50u; stepper at left 60%, top 67%, discs 34u with 15u text.
**Bottom-left:** thumbnails at left 16u, top 74%, 50u squares with 11u radius and 8u gap; review at left 16u, top 82.5%, 175u wide, 12u text.
**Bottom-right:** arrows at right 16u, top 74%, 44u; chips at right 16u, top 82%, 30u tall, 10u padding, 11.5u text; CTA at right 16u, top 91.5%, 46u tall, 24u padding, 18u text.
**Ribbon and wave:** ribbon top −8u, height 80u, text 96 px in viewBox units; wave bottom −50u, height 100u.
**Section copy:** full width between 22u insets, no vertical centring. Top 110u (section 2), 120u (section 3), 140u (section 4). h2 44u, paragraph 14.5u, button 46u tall with 17u text. The tin sits in the lower half using the small-screen poses.
## 11. Reduced motion (prefers-reduced-motion: reduce)
- No Lenis.
- No intro: all UI and text visible immediately, with no transforms, filters or transitions.
- The tin does not spin and does not rise.
- The marquee is still.
- The tin still moves to each section's pose as you scroll.
## 12. Acceptance checklist
- The tin renders crisp at desktop, 768×1024 and 390×844, with the clean "Butterly" label and no streaky reflections.
- Load order: stage blur-in, tin rising while spinning, UI, cookie pop, price last.
- Scrolling glides the tin hero → large right → left → tilted right, and fully reverses on scroll up. The tin never covers section text (text sits above the canvas).
- The ribbon text flows continuously along its curve. The wave sits across the section 3 / section 4 boundary.
- Dragging the handle spins the tin; the arrows give quarter turns.
- No visible seams between sections; nothing overlaps or leaves the viewport on the three sizes.
- 60 fps on a normal laptop with the tab in front.适用模型与稳定度
建议模型
继续探索

3D 创作者 Jack 的作品集落地页,React + TypeScript + Framer Motion,#0C0C0C 暗底。
提示语
使用 React、TypeScript、Tailwind CSS、Framer Motion 和 Lucide React,为「Jack」构建一个 3D 创作者作品集落地页。页面采用深色主题(背景为 #0C0C0C),字体使用 Kanit(Google Fonts,字重 300-900)。页面标题为「Jack -- 3D Creator」。 全局样式 html、body、#root 和主容器的背景:#0C0C0C 字体族:'Kanit', sans-serif 全局重置:b

提示语
为一家名为“NEXOVA”的托管公司构建一个全屏 404 错误页面。整个页面采用单视口高度布局,包含循环播放的背景视频、导航栏、居中的 hero/404 区域和多栏页脚。使用 React + Tailwind CSS + Lucide React icons。不要使用其他 UI 库。 --- **字体** 在 `index.html` 中通过以下样式表加载“Helvetica Now Var”: ``` <link href="https://db.onlinewebf

ADHD 友好的日程应用 Drift 落地站,React + Vite + TypeScript + Tailwind,安静低刺激的视觉方向本身就是产品卖点。
提示语
为 "Drift" 构建一个单页落地网站——这是一款平静、对 ADHD 友好的规划应用。使用 React + Vite + TypeScript + Tailwind CSS + lucide-react 提供图标。不要使用其他 UI 库。 ### 字体 通过 Google Fonts 在 `index.css` 中导入: - **Inter**(字重 400、500、600)——用作基础正文字体 - **Instrument Serif**(仅斜体)——用于首屏标题中的
Case 详情页把原帖效果、Prompt 与复测证据放在同一条阅读路径里。