设计与多媒体

frame-liquid-bg-hero

nexu-io/open-design

WebGL-style fluid displacement background with a quote overlay, suited to video intros, landing heroes, or posters.

  • 2646 次安装
  • 10.5万 星标
  • 收录于

安装命令

npx skills add https://github.com/nexu-io/open-design --skill frame-liquid-bg-hero

SKILL.md

【模板: 流体背景 Hero】 【意图】可作为视频片头帧、SaaS landing 顶部 hero、海报底图。WebGL 流体感, 但用 CSS / canvas 退化绘制, 确保单文件可双击打开。Inspired by hyperframes vfx-liquid-background。

【画布】1920×1080 (横) 或 1080×1920 (竖), 二选一。背景占满。

【流体背景 — 3 种实现, 按用户偏好选】

  1. CSS 多层 radial-gradient 错位呼吸 (最稳, 默认推荐):
    • 3-5 个大椭圆 radial-gradient(...), 颜色取自调色板。
    • 每个椭圆套 @keyframes 平移 + scale + hue-rotate, 周期 8-14s, 错峰; 整个画面叠 mix-blend-mode: screen 或 overlay。
    • 顶层加 1 层 backdrop-filter: blur(80px) 让边缘更糊。
  2. Canvas + simple perlin noise (中阶):
    • 80 行 inline JS, 用 requestAnimationFrame 画 metaballs 或 simplex noise field。
    • 性能允许时启用, prefers-reduced-motion 时降回静态截图。
  3. WebGL fragment shader (高阶, 慎用):
    • 用 jsdelivr CDN 引 regl 或 inline plain WebGL。
    • shader 写 domain-warp noise; 单个 quad, 一个 uniform u_time。