webgl-depth-gallery
它能做什么
创建一个会随滚动而变化的交互式 3D 图片画廊。图片之间平滑地相互淡入淡出,还带有发光的光标轨迹和一张色彩卡片。
适用场景
- ✓动态展示照片作品集。
- ✓打造视觉冲击力强的网页。
- ✓以 3D 效果展示商品。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-depth-gallery/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我做一个 3D 图片画廊,放入我的旅行照片,并且每张图片都配有变化的背景。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具使用 WebGL 技术在浏览器中创建 3D 图形。它会把你的图片按景深排列,并在你滚动时平滑地切换,同时添加视觉效果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Depth Gallery
Produce a single self-contained index.html — A scroll-reactive 3D image gallery in Three.js: Z-stacked images crossfade over per-image mood backgrounds with velocity breath, a glowing cursor trail and an editorial CMYK/RGB/HEX/PMS color card.
Why this is a powered artifact
OpenDesign detects getContext('webgl2') / heavy WebGL and renders this file in powered preview (a cross-origin-isolated iframe). The full GPU + scroll pipeline runs; no opaque-sandbox workarounds are needed.
Resource map
webgl-depth-gallery/
├── SKILL.md ← you're reading this
├── example.html ← the complete, working artifact (READ FIRST)
└── (assets, if any)
Credits / attribution
- effect: Houmahani Kane / Codrops (MIT)
- imagery: Lummi.ai
Keep any bundled LICENSE and on-screen credit intact. Replace imagery only with license-clean assets (original / AI, Lummi.ai, Unsplash/Pexels — never scraped imagery).
常见问题
“随滚动响应”是什么意思?
意思是画廊会随着你在页面上向上或向下滚动而做出反应并发生变化。
“速度呼吸”是什么?
这是一种效果,让图片随着你的移动速度平滑地像呼吸或脉动一样变化。
“发光光标轨迹”是什么?
它是跟随你鼠标指针在屏幕上留下的一道发光轨迹。
详情
作者的原始描述
A scroll-reactive 3D image gallery in Three.js: Z-stacked images crossfade over per-image mood backgrounds with velocity breath, a glowing cursor trail and an editorial CMYK/RGB/HEX/PMS color card.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1053
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …