Communitygithub.com

WebGL 着陆页引导技能

在创建或优化 WebGL 密集的着陆页时,用于引导实现特定的视觉目标(高端、技术、趣味、电影感),同时平衡转化清晰度、性能和实现复杂度。

WebGL 着陆页引导技能 是什么?

该技能为需要构建 WebGL 驱动着陆页的开发者提供结构化决策框架。它帮助用户通过将着陆页目标映射到六种 WebGL “通道”(如 Subtle Depth Field 或 Data Particle Intelligence),避免在英雄区域混用大量复杂效果。该技能适用于 Claude Code、Cursor、Codex 等平台,涵盖从页面意图定义到部署前质量检查的全流程,包括性能优化(限制像素比、懒加载资源)、可访问性(尊重 `prefers-reduced-motion`)以及响应式降级策略。它提供实现风险分级(低/中/高)和一个提示模板,可快速生成特定通道和页面类型的代码。最终输出包括推荐通道、视觉规范、技术栈、回退策略以及构建顺序,确保每个 WebGL 项目在视觉影响与转换清晰度之间取得平衡。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/MengTo/Skills/tree/HEAD/agent-skills/web-design/webgl-landing-steering

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

WebGL 着陆页引导技能 是做什么的?

使用此技能引导结果

在编写代码之前,将着陆页目标映射到 WebGL 方向。

1) 定义页面意图

识别主要转化目标和品牌信号:

  • 高端 / 奢华 / 简约自信
  • 技术 / 基础设施 / 数据权威
  • 趣味 / 消费者 / 社交能量
  • 电影感 / 发布 / 故事叙述影响力

还需考虑:

  • 设备组合(桌面为主 vs 移动为主)
  • 动画容忍度(prefers-reduced-motion 策略)
  • 生产限制(截止日期、团队技能、维护预算)

2) 选择 WebGL 通道

选择一个主导通道;避免在英雄区域混合 3-4 种重量级效果。

通道 A:微妙深度场(高转化安全性)

适用于:SaaS、生产力工具、B2B 工具,可读性优先。

  • 视觉效果:柔和渐变网格、慢速视差平面、轻微泛光
  • 动画:低幅度,始终作为文案的辅助
  • 技术栈:Three.js 平面着色器或轻量级着色器画布
  • 规则:英雄文字对比度和 CTA 优先

通道 B:数据/粒子智能(技术可信度)

适用于:AI、基础设施、数据分析、开发者产品。

  • 视觉效果:粒子流、节点网络、向量场、线框
  • 动画:有目的性的方向性流动,引导至 CTA 区域
  • 技术栈:Three.js + 自定义着色器/点,必要时使用 GPGPU 处理密集场
  • 规则:传达“系统行为”,而非随机闪烁

通道 C:以物体为中心的 3D 产品时刻(功能清晰度)

适用于:硬件、具有强大产品视觉的应用程序、产品发布。

  • 视觉效果:中心 GLTF 模型、受控相机轨道、材质高光
  • 动画:基于交互或时间线驱动的展示
  • 技术栈:Three.js + GLTF/DRACO/KTX2 管线
  • 规则:一个英雄对象,短循环,快速首次有意义的绘制回退

通道 D:沉浸式电影场景(品牌营销活动)

适用于:以惊艳效果为主要 KPI 的活动页面。

  • 视觉效果:体积效果、重度后期处理、密集场景组合
  • 动画:带有滚动章节的编排序列
  • 技术栈:Three.js + 后期处理 + 可选的 GSAP ScrollTrigger
  • 规则:提供静态/移动端回退和严格的性能检查门

3) 按着陆页类型划分的引导矩阵

  • 等待列表 / 发布前:通道 A 或 B。保持文案清晰且加载快速。
  • 产品功能页:通道 A 或 C。展示产品真相,而非抽象噪音。
  • 定价 / 高意向页:主要是通道 A。仅将 WebGL 用作装饰。
  • 企业信任页:通道 B,搭配克制色板和低噪音。
  • 消费者应用增长页:通道 B,搭配趣味色板,但限制 CPU/GPU 负载。
  • 活动微站点:通道 C 或 D,为低端设备提供明确的回退。

4) 上线前的质量检查门

在增加更多视觉复杂度前,通过以下检查门:

  1. 信息检查门:
  • 英雄标题 + CTA 在 3 秒内可读。
  • WebGL 从不阻碍对产品的理解。
  1. 性能检查门:
  • 限制像素比:Math.min(devicePixelRatio, 1.5-2)。
  • 在常见移动设备上保证稳定的帧时间。
  • 懒加载重量级资产;立即显示非 WebGL 的海报/回退。
  1. 可访问性检查门:
  • 尊重 prefers-reduced-motion(静态帧或低动画模式)。
  • 在动画背景上保持颜色对比度。
  1. 可靠性检查门:
  • 处理上下文丢失和窗口大小变化。
  • 在 SPA 路由切换时释放几何体/材质/纹理。

5) 按风险划分的实现策略

  • 低风险(最快):CSS + 画布视觉效果,最小化着色器
  • 中等风险:Three.js 场景,带 1-2 个网格,轻量级后期效果
  • 高风险:多通道着色器、密集粒子、高级后期处理

对于转化页面,默认采用低/中等风险,除非用户明确要求活动级沉浸式体验。

6) Codex 风格执行的提示模板

当被要求构建 WebGL 着陆页英雄时,使用以下提示模式:

"为 [页面类型] 构建一个 [通道] WebGL 英雄,具有 [品牌形容词]。 主要目标:[转化]。 限制条件:[设备组合],[性能预算],[减少动画策略]。 先实现回退,再用 WebGL 增强。 将英雄文案清晰度置于视觉复杂度之上。"

7) 常见失败模式及修正

  • 失败:"看起来酷,但转化率下降了。"
    • 修复:降低动画幅度,加深/柔化背景,提高 CTA 对比度。
  • 失败:"移动端卡顿。"
    • 修复:减少粒子数量,降低 DPR 上限,移除昂贵的后期处理。
  • 失败:"视觉风格感觉太通用。"
    • 修复:选择一个符合品牌的标志性主题(网格、波浪、轨道、碎片)。
  • 失败:"团队无法维护着色器复杂度。"
    • 修复:简化为模块化的 Three.js 场景,并附带文档化参数。

应用此技能时的输出格式

返回:

  1. 推荐通道及原因
  2. 视觉规范(色板、动画行为、构图)
  3. 技术栈和复杂度级别
  4. 回退行为
  5. 性能 + 可访问性检查清单
  6. 构建顺序(先 MVP,后增强)

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

MengTo/Skills

Create polished 60 fps 4:3 4K browser screen-recording style videos from Codex in-app browser captures, with browser-only crop, natural macOS cursor styling, deliberate click choreography, zoom-follow framing, ffprobe/thumbnail verification, and optional native recording compatibility checks. Use when the user asks to record or re-record browser actions, show cursor clicks and zooms, make Dribbble/UI inspiration or product demo recordings, or asks whether Codex, Playwright, or an MCP can produce a natural browser demo video.

MengTo/Skills

Generate ElevenLabs text-to-speech audio from scripts or inline text using local voice profiles. Use when the user asks for ElevenLabs, text-to-speech, TTS, narration, voiceover, speech audio, or voice generation; load voice names, voice ids, emails, owners, and account-specific defaults only from local config outside the skill.

MengTo/Skills

Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slowdowns, CSS animations, canvas/WebGL requestAnimationFrame loops, marquees, skeletons, GSAP/Three/Matter effects, timers, listeners, and observers. Use when the user asks to make animations performant, pause offscreen animations, look for memory leaks, profile pages that slow the computer over time, fix janky scrolling, reduce CPU/GPU use, or repeat the "only play in view" optimization on React/Vite/Next/frontend pages using Codex Browser.

MengTo/Skills

Turn a reference video into a super detailed recreation or inspiration prompt. Use when the user provides, mentions, uploads, links, or points to a video and asks to analyze the design, UI, animations, transitions, scroll interactions, typography, colors, assets, WebGL/Three.js, storytelling, section-by-section behavior, or to create a prompt/article that recreates the page, app, interaction, or motion system.

MengTo/Skills

Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport.

MengTo/Skills

Use when designing or implementing product-grade web motion like Stripe, Linear, Apple, and Vercel. Covers motion principles, easing/duration defaults, choreography patterns, scroll/hover interactions, performance, accessibility (reduced motion), and implementation guidance.

MengTo/Skills

Create premium cinematic web motion systems with GSAP, ScrollTrigger, and Lenis. Use for luxury editorial websites, creative studio portfolios, Awwwards-style interactions, smooth scroll reveals, staggered text, parallax, pinned sections, magnetic hover states, custom cursors, and mouse-reactive layered movement.

MengTo/Skills

Create cinematic scroll-driven landing pages with Lenis smooth scrolling, GSAP ScrollTrigger, scroll-linked progression, staggered text reveals, sticky card stacks, parallax backgrounds, scroll-scrubbed transitions, footer reveals, and immersive preloaders. Use when analyzing or building premium editorial scroll experiences, sticky project stacks, kinetic typography, or section-by-section storytelling.

MengTo/Skills

Use when designing or rewriting a high-converting SaaS pricing page (structure, plan design, copywriting, SEO/AEO, FAQs, layout patterns, experiments). Includes checklists, templates, and common pitfalls.

相关技能