GoodCase.aiAI 动态 · Radar↗图谱 · AI Map↗课程 · LearnPrompt↗
出品GoodCase.aiAI News Radar ↗AI Map ↗LearnPrompt ↗
GoodCase.aiGoodCase.aiAI提示语案例合集
GoodCase.ai
排行榜案例Skills收藏投稿早报加入我们
中文EN
Agent 接入 →

出品

AI 动态 · Radar ↗图谱 · AI Map ↗课程 · LearnPrompt ↗
GoodCase.aiGoodCase.aiAI提示语案例合集
排行榜案例Skills收藏投稿早报加入我们
中文EN
Agent 接入 →

加载中…

GoodCase.ai · AI提示语案例合集
DSH 插件榜更新日志反馈
模型创作者Seedance 2.5Seedance 2.0GPT Image 2GeminiNano Banana ProClaudeClaude Opus 5.5Grok ImagineVeoKling 可灵Qwen ImageGPT Image 1.5MiniMax H3
像素网格悬停效果

像素网格悬停效果

创作者 · MotionSites

AI 编程(UI)MotionSites收录 2026/08/13已有人复测#not-rerun#web-ui
查看原始来源 ↗

Prompt

复刻提示词保留原文,另附运行环境、素材与验收要求;附加说明不是原作者原话。

使用 Tailwind CSS 3 和 Framer Motion,将一个“项目 / 案例研究”区块构建为 React + TypeScript 组件。字体为 `'DM Sans', sans-serif`(Google Fonts:`https://fonts.googleapis.com/css?family=DM+Sans:500,400`)。白色背景,黑色文字。以下是确切规范:

---

**区块容器:**
- 使用带有 `relative bg-white text-black` 的 `<section>`,内联样式为 `fontFamily: "'DM Sans', sans-serif"`
- 所有动画均使用缓动 `[0.22, 1, 0.36, 1]`
- 注入一个 `<style>` 块,用于跑马灯关键帧:
  ```css
  @keyframes marqueeProjects {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .marquee-projects {
    animation: marqueeProjects 28s linear infinite;
  }
  .marquee-projects:hover {
    animation-play-state: paused;
  }
  ```

---

**顶部区域(带漂浮方块的页头):**
- 容器:`relative px-6 pb-10 pt-32 sm:px-10 lg:px-16 lg:pt-40`
- 包含一个 `pointer-events-none absolute inset-0 overflow-hidden` 图层,其中有 8 个带视差效果的漂浮黑色方块。每个方块使用 `useScroll`(target:区块 ref,offset `["start end", "end start"]`),并通过 `useTransform` + `useSpring` 实现垂直视差,同时带有轻柔的无限上下浮动动画(`y: [0, -10, 0]`、duration `3s + index * 0.4s`、ease `easeInOut`、交错 delay `index * 0.3s`)。
- 方块位置(x%、y%、尺寸 px):
  ```
  (6, 20, 12), (12, 32, 8), (8, 44, 6), (88, 18, 10),
  (92, 30, 14), (85, 42, 7), (90, 52, 5), (14, 56, 5)
  ```
- 视差公式:`useTransform(scrollYProgress, [0, 1], [0, -(80 + index * 30)])`,使用 `useSpring({ stiffness: 40, damping: 20 })` 平滑处理

**页头文字**(居中,位于 `relative mx-auto max-w-7xl text-center` 内):
- 从 `opacity: 0, y: 24` 动画至可见,duration `0.7s`,由带有 `{ once: true, margin: "-60px" }` 的 `useInView` 触发
- 徽章:“项目”,使用 `mb-5 inline-block bg-black px-4 py-1.5 text-[13px] font-medium tracking-wide text-white`
- 标题:`text-[clamp(1.8rem,3.2vw,2.8rem)] font-light leading-[1.25] tracking-tight`
  - “洞察来自”使用 `text-black`,然后“Our”使用 `text-black/40`
  - 新一行:“案例研究”使用 `text-black/40`

---

**案例研究卡片(2x2 网格):**
- 容器:`mx-auto max-w-7xl px-6 pb-16 sm:px-10 lg:px-16`,内部为 `grid gap-4 md:grid-cols-2`
- 每张卡片从 `opacity: 0, y: 30` 动画至可见,交错 `delay: index * 0.1`,duration `0.7s`

**4 个案例研究的数据:**
```
1. id: "heartx", title: "HeartX", category: "品牌策略与产品设计", year: "2026"
   image: https://images.pexels.com/photos/7691249/pexels-photo-7691249.jpeg?auto=compress&cs=tinysrgb&w=800

2. id: "swave", title: "Swave\u00AE", category: "网页设计与品牌识别", year: "2025"
   image: https://images.pexels.com/photos/2559941/pexels-photo-2559941.jpeg?auto=compress&cs=tinysrgb&w=800

3. id: "eduspark", title: "EduSpark", category: "品牌策略与网页设计", year: "2023"
   image: https://images.pexels.com/photos/5428003/pexels-photo-5428003.jpeg?auto=compress&cs=tinysrgb&w=800

4. id: "greenergy", title: "Greenergy", category: "品牌策略与网页设计", year: "2022"
   image: https://images.pexels.com/photos/2800832/pexels-photo-2800832.jpeg?auto=compress&cs=tinysrgb&w=800
```

**每张卡片的结构**(宽高比 `4/3`,`group relative overflow-hidden`):

1. **背景图像**:绝对定位,`h-full w-full object-cover`

2. **像素块悬停叠加层**:一个由绝对定位的 `bg-black/80` 块组成的 12 列 x 8 行网格。每个块覆盖 `100/12 %` 的宽度和 `100/8 %` 的高度。悬停时,它们通过对角线交错方式执行 `scale: 0 -> 1, opacity: 0 -> 1` 动画:`delayIn = (row + col) * 0.018s`,`delayOut = ((8 - row) + (12 - col)) * 0.012s`。Duration `0.25s`。这会在悬停时产生像素溶解显现效果。

3. **磁吸方块**:每张卡片包含 5-6 个绝对定位的黑色小方块。它们通过 `useMotionValue` + `useTransform` + `useSpring` 响应光标:卡片被悬停时,每个方块会按比例向指针移动(`dist * 40`)。Spring 配置:`{ stiffness: 80, damping: 18, mass: 0.6 }`。指针离开时,它们会弹回中心(指针重置为 `0.5, 0.5`)。

   每张卡片的方块位置(x%、y%、尺寸 px):
   ```
   HeartX:    (5,30,16), (10,42,10), (3,52,7), (80,70,14), (85,82,9), (78,60,6)
   Swave:     (82,55,16), (88,68,10), (78,72,7), (85,42,6), (90,80,8)
   EduSpark:  (4,24,16), (10,36,10), (2,44,7), (78,78,14), (84,88,8)
   Greenergy: (82,26,14), (88,38,10), (78,44,7), (84,54,5), (90,60,8)
   ```

4. **加号按钮**(右上角):`absolute right-4 top-4`、`h-7 w-7 items-center justify-center border border-white/30 text-xs text-white`,“+”文字,`zIndex: 10`

5. **信息面板**(左下角):`absolute bottom-0 left-0 bg-white px-4 pb-3 pt-2.5`、`zIndex: 20`、`maxWidth: "70%"`
   - 标题:`text-[clamp(1.4rem,2.2vw,2rem)] font-normal leading-tight text-black`
   - 下方:包含类别(`text-[12px] text-black/60`)和年份(`text-[12px] font-medium text-black`)的 flex 行,`mt-1.5 gap-4`

---

**页脚区域:**
- 容器:`mx-auto max-w-7xl px-6 pb-6 sm:px-10 lg:px-16`
- 桌面端为 flex 行(`md:flex-row md:items-end md:justify-between`),移动端为列

**左侧**(`max-w-md`):
- 加号按钮:`mb-4 flex h-7 w-7 items-center justify-center border border-black/20 text-xs text-black`,“+”
- 段落:“我们与雄心勃勃、准备摆脱零散视觉和肤浅速效方案的品牌合作,将其品牌识别、网站和信息传达整合为一个聚焦增长的引擎。”,使用 `text-[14px] leading-[1.7] text-black/60`
- CTA 按钮(`mt-6`):一个带有 `group flex items-end` 的 `<button>`:
  - 主标签:`inline-flex items-center gap-[10px] border border-black/20 bg-black px-3 py-2 text-base font-medium text-white`,悬停时 `bg-black/85`。文字:“让我们携手合作”
  - 箭头徽章:一个 `h-6 w-6` 的黑色小方块,带有 `mb-6`,其中包含一个对角箭头 SVG(白色,16x16,viewBox `0 0 24 24`,path:`M18.75 6V15.75C18.75 15.949 18.671 16.14 18.53 16.28C18.39 16.421 18.199 16.5 18 16.5C17.801 16.5 17.61 16.421 17.47 16.28C17.329 16.14 17.25 15.949 17.25 15.75V7.81L6.53 18.53C6.39 18.671 6.199 18.75 6 18.75C5.801 18.75 5.61 18.671 5.47 18.53C5.329 18.39 5.25 18.199 5.25 18C5.25 17.801 5.329 17.61 5.47 17.47L16.19 6.75H8.25C8.051 6.75 7.86 6.671 7.72 6.53C7.579 6.39 7.5 6.199 7.5 6C7.5 5.801 7.579 5.61 7.72 5.47C7.86 5.329 8.051 5.25 8.25 5.25H18C18.199 5.25 18.39 5.329 18.53 5.47C18.671 5.61 18.75 5.801 18.75 6Z`)。在 group 悬停时,徽章向上移动:`mb-6 -> mb-9`,并使用 `transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]`

**右侧**(`flex-1 overflow-hidden md:ml-12`,移动端带有 `border-t border-black/10`,桌面端无边框):
- 一个无限水平跑马灯(`overflow-hidden py-5`)
- 内部轨道:`marquee-projects flex w-max`(使用上方的 CSS 关键帧,28s duration)
- 悬停时暂停
- 8 个标志,复制一组(共 16 个),以实现无缝循环。每个项目:`flex shrink-0 items-center gap-2.5 px-8`
  - 一个 SVG 图标(黑色,每个标志各不相同)
  - 名称文字:`whitespace-nowrap text-sm font-medium tracking-wide text-black/80`

**8 个跑马灯标志**(名称、图标类型):
```
("Codecraft_", code), ("ennLabs", dots), ("GlobalBank", circle-ring),
("45 Degrees\u00b0", arrow), ("AlphaWave", wave-circle), ("Biosynthesis", lines),
("Boltshift", bolt), ("Clandestine", plus)
```

**SVG 图标定义**(全部使用黑色 stroke 或 fill):
- **code**:22x18,viewBox `0 0 22 18`,stroke,strokeWidth 2,round caps。两条 polylines `6,4 1,9 6,14` 和 `16,4 21,9 16,14`,一条 line `13,2 to 9,16`
- **dots**:20x20,viewBox `0 0 20 20`,filled。9 个 circles 位于网格位置 `[3,10,17] x [3,10,17]`,radius `2.2`
- **circle-ring**:22x22,viewBox `0 0 22 22`,stroke,strokeWidth 2。两个 circles 均位于 `(11,11)`,radii 分别为 `9` 和 `4`
- **arrow**:18x18,viewBox `0 0 18 18`,stroke,strokeWidth 2,round caps。Line `2,16 to 16,2`,polyline `7,2 16,2 16,11`
- **wave-circle**:22x22,viewBox `0 0 22 22`,stroke,strokeWidth 1.5。Circle `(11,11)` r=9,path `M5 11Q8 7 11 11Q14 15 17 11`
- **lines**:24x18,viewBox `0 0 24 18`,stroke,strokeWidth 2.2,round caps。三条水平 lines:`(0,3 to 24,3)`、`(6,9 to 24,9)`、`(0,15 to 18,15)`
- **bolt**:14x20,viewBox `0 0 14 20`,filled。Polygon `8,0 0,11 6,11 6,20 14,9 8,9`
- **plus**:18x18,viewBox `0 0 18 18`,filled。两个 rects:`(7.5, 0, 3, 18)` 和 `(0, 7.5, 18, 3)`

**底部间隔**:`<div className="h-12" />`

---

**依赖项:** React 18、Framer Motion (v12+)、Tailwind CSS 3。使用来自 framer-motion 的 `useRef`、`useState`、`useCallback`、`useScroll`、`useTransform`、`useSpring`、`useMotionValue`、`useInView` 和 `motion`。不使用其他库。
≡溯源 · 已核对已发布案例的 prompt 均经人工核对与原帖一致;平台逆向重构的 prompt 不予收录。核对原帖 ↗

适用模型与稳定度

建议模型

待补充模型
稳定度
77 / 100
成本
中
对应 Skill网页区块像素复刻 ↗

多人复现

1 个人用同一段 Prompt 跑出了自己的作品。

复现作品 · 非作者原作
卡尔
复现者卡尔
2026年10月15日
卡尔 的复现作品打开复现作品 ↗
glm-5.3

GLM-5.3 单次生成;Codex 人工修复运行依赖、必要源码及移动布局,未重新生成。桌面/手机真实渲染和资源检查通过;完整功能与视觉还原尚未全部验收。源码、截图和修复记录见复现出处。

复现出处 ↗

继续探索

继续看相关 Case。

查看全部 AI 编程(UI) Case →
3D Jack 作品集
AI 编程(UI)MotionSites收录 2026/08/13

3D Jack 作品集

3D 创作者 Jack 的作品集落地页,React + TypeScript + Framer Motion,#0C0C0C 暗底。

Skill · 3D / 动效 HeroSkill · 个人作品集叙事

提示语

使用 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

来源热度 · MotionSites
—
稳定度
65
查看 Case →
404 星球
AI 编程(UI)MotionSites收录 2026/08/13

404 星球

主机商 NEXOVA 的 404 页,循环视频背景加导航,错误页做出了落地页的完成度。

Skill · 网页区块像素复刻

提示语

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

来源热度 · MotionSites
—
稳定度
94
查看 Case →
ADHD 规划器
AI 编程(UI)MotionSites收录 2026/08/13

ADHD 规划器

ADHD 友好的日程应用 Drift 落地站,React + Vite + TypeScript + Tailwind,安静低刺激的视觉方向本身就是产品卖点。

Skill · 网页区块像素复刻

提示语

为 "Drift" 构建一个单页落地网站——这是一款平静、对 ADHD 友好的规划应用。使用 React + Vite + TypeScript + Tailwind CSS + lucide-react 提供图标。不要使用其他 UI 库。 ### 字体 通过 Google Fonts 在 `index.css` 中导入: - **Inter**(字重 400、500、600)——用作基础正文字体 - **Instrument Serif**(仅斜体)——用于首屏标题中的

来源热度 · MotionSites
—
稳定度
91
查看 Case →

同作者

同作者更多 · MotionSites →

  • Quantum LucidAI 编程(UI) · 2026-09-18
  • 珍稀画廊AI 编程(UI) · 2026-08-30
  • Palomar LabsAI 编程(UI) · 2026-08-30
  • Quantum CoreAI 编程(UI) · 2026-08-30
  • Agent WaveAI 编程(UI) · 2026-08-19
  • Aurex FinanceAI 编程(UI) · 2026-08-19

Case 详情页把原帖效果、Prompt 与复测证据放在同一条阅读路径里。