| 1 | --- |
| 2 | name: frame-liquid-bg-hero |
| 3 | zh_name: "流体背景 Hero 帧" |
| 4 | en_name: "Liquid Background Hero" |
| 5 | emoji: "🌊" |
| 6 | description: "WebGL-style fluid displacement background with a quote overlay, suited to video intros, landing heroes, or posters." |
| 7 | zh_description: "WebGL 风流体置换背景 + 顶部叠加金句, 适合视频片头 / landing hero / 海报" |
| 8 | en_description: "WebGL-style fluid displacement background with a quote overlay, suited to video intros, landing heroes, or posters." |
| 9 | category: poster |
| 10 | scenario: video |
| 11 | aspect_hint: "1920×1080 (16:9) 或 1080×1920 (9:16)" |
| 12 | featured: 39 |
| 13 | tags: ["liquid", "fluid", "background", "hero", "html-in-canvas", "vfx"] |
| 14 | example_id: sample-frame-liquid-bg-hero |
| 15 | example_name: "流体背景 Hero · 金句" |
| 16 | example_format: markdown |
| 17 | example_tagline: "Aurora Violet 流体" |
| 18 | example_desc: "多层 radial-gradient 呼吸背景 + difference 文字" |
| 19 | example_source_url: "https://hyperframes.heygen.com/catalog" |
| 20 | example_source_label: "hyperframes · vfx-liquid-background" |
| 21 | od: |
| 22 | mode: video |
| 23 | surface: video |
| 24 | scenario: video |
| 25 | upstream: "https://github.com/nexu-io/html-anything" |
| 26 | preview: |
| 27 | type: html |
| 28 | entry: index.html |
| 29 | reload: debounce-100 |
| 30 | design_system: |
| 31 | requires: false |
| 32 | example_prompt: "Use the Liquid Background Hero template to turn my content into a WebGL-style fluid displacement background with a quote overlay for a video intro, landing hero, or poster. Preserve the template's visual signature, use real content and data, and avoid lorem ipsum or placeholder images." |
| 33 | example_prompt_i18n: |
| 34 | zh-CN: "用「流体背景 Hero 帧」模板把我的内容做成一段「WebGL 风流体置换背景 + 顶部叠加金句, 适合视频片头 / landing hero / 海报」。保持模板的视觉签名,使用真实内容和数据,避免 lorem ipsum 和占位图片。" |
| 35 | --- |
| 36 | |
| 37 | 【模板: 流体背景 Hero】 |
| 38 | 【意图】可作为视频片头帧、SaaS landing 顶部 hero、海报底图。WebGL 流体感, 但用 CSS / canvas 退化绘制, 确保单文件可双击打开。Inspired by hyperframes vfx-liquid-background。 |
| 39 | |
| 40 | 【画布】1920×1080 (横) 或 1080×1920 (竖), 二选一。背景占满。 |
| 41 | |
| 42 | 【流体背景 — 3 种实现, 按用户偏好选】 |
| 43 | 1. **CSS 多层 radial-gradient 错位呼吸** (最稳, 默认推荐): |
| 44 | - 3-5 个大椭圆 `radial-gradient(...)`, 颜色取自调色板。 |
| 45 | - 每个椭圆套 `@keyframes` 平移 + scale + hue-rotate, 周期 8-14s, 错峰; 整个画面叠 `mix-blend-mode: screen` 或 `overlay`。 |
| 46 | - 顶层加 1 层 `backdrop-filter: blur(80px)` 让边缘更糊。 |
| 47 | 2. **Canvas + simple perlin noise** (中阶): |
| 48 | - 80 行 inline JS, 用 `requestAnimationFrame` 画 metaballs 或 simplex noise field。 |
| 49 | - 性能允许时启用, `prefers-reduced-motion` 时降回静态截图。 |
| 50 | 3. **WebGL fragment shader** (高阶, 慎用): |
| 51 | - 用 jsdelivr CDN 引 `regl` 或 inline plain WebGL。 |
| 52 | - shader 写 domain-warp noise; 单个 quad, 一个 uniform `u_time`。 |
| 53 | |
| 54 | 【顶层文字层】 |
| 55 | - 居中或左下: 一句巨型金句 (5-7vw, 衬线或粗 sans), 字体: `Source Serif Pro` / `Inter Tight` / `Manrope Black`。 |
| 56 | - 文字色用 paper white `#fafaf8` 或 ink, 取决于背景明暗; 加 `mix-blend-mode: difference` 让它在任何流体颜色上都可读。 |
| 57 | - 副标 (小 sans, opacity 0.7) 一行。 |
| 58 | - 底部可选 CTA chip 或 hairline + 元数据 row。 |
| 59 | |
| 60 | 【调色 — 4 选 1, 不要彩虹】 |
| 61 | - 🌅 **Solar Peach** — `#ffb18a` + `#f78b4c` + `#d97757`, 暖橙桃。 |
| 62 | - 🌊 **Ocean Aqua** — `#5ac8fa` + `#0a84ff` + `#1e3a8a`, 海蓝。 |
| 63 | - 🌌 **Aurora Violet** — `#a78bfa` + `#7c5cff` + `#1e1b4b`, 极光紫。 |
| 64 | - 🌿 **Forest Mint** — `#86efac` + `#34d399` + `#065f46`, 苔森林。 |
| 65 | |
| 66 | 【设计细节】 |
| 67 | - 严禁: 多色彩虹 (>4 个色相)、PowerPoint 渐变、霓虹荧光叠加。 |
| 68 | - 字体: 中文用 `Noto Serif SC` (display) / `Noto Sans SC` (副标)。 |
| 69 | - 严禁外链图片; 全部 CSS + SVG + 可选 canvas。 |
| 70 | - 必须用用户提供的金句 / 标题; 如果用户输入是数据 → 提炼一句 ≤ 18 字的金句。 |
| 71 | - 单文件 HTML, 可被 `prefers-reduced-motion` 关动效。 |
| 72 |