webgl-pixel-reveal-gallery
它能做什么
创建一个会随着滚动而播放动画的图片画廊。图片进入屏幕时,会从像素或网格中逐渐浮现;页面标题会拆分成一个个字母出现;点击图片后还可以全屏查看。
适用场景
- ✓制作视觉效果出众的作品集页面。
- ✓开发用于展示照片或艺术作品的网站。
- ✓为网站增添现代而动感的效果。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-pixel-reveal-gallery/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我创建一个图片画廊,滚动时有像素浮现效果,标题有动画,点击图片可以放大。”
每周 5 个新技能,1 分钟读完。
工作原理
它使用两个动画库(Three.js 和 GSAP)来实现视觉效果。当你滚动页面时,图片会加载,并以像素溶解的动画出现。点击某张图片后,它会展开放大。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Pixel Reveal Gallery
Produce a single self-contained index.html — A scroll-reactive masonry gallery (Three.js + GSAP) where each image develops from a pixel/grid dissolve on viewport entry, with a split-text heading and click-to-fullscreen Flip.
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-pixel-reveal-gallery/
├── SKILL.md ← you're reading this
├── example.html ← the complete, working artifact (READ FIRST)
└── (assets, if any)
Credits / attribution
- effect: J0SUKE / Codrops (MIT)
- imagery: Original (AI-generated)
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).
常见问题
什么是“瀑布流画廊”(masonry gallery)?
这是一种排版方式,各个元素(这里指图片)会像拼图一样高效地铺满可用空间,不会留下大的空白。
Three.js 和 GSAP 是什么?
它们是一些工具(即库),能帮助开发者在网页上制作复杂的动画和图形,比如这个画廊中的视觉效果就是用它们实现的。
“点击全屏 Flip”是什么意思?
意思是点击图片后,它会以动画的方式(Flip)展开,铺满整个屏幕(全屏)。
详情
作者的原始描述
A scroll-reactive masonry gallery (Three.js + GSAP) where each image develops from a pixel/grid dissolve on viewport entry, with a split-text heading and click-to-fullscreen Flip.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1062
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …