跳到正文
Skillpedia
图片与图标101k · #1057

webgl-horizontal-parallax

它能做什么

使用一种叫 WebGL 的先进技术,创建一个水平滚动的图片画廊。图片会平滑地左右滑动,每张图片都有随你移动而变化的景深效果。

适用场景

  • ✓制作一个在线视觉作品集。
  • ✓以现代感的方式展示一个项目。
  • ✓做一个带侧边导航的活动网站。

技能链接

https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-horizontal-parallax/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/webgl-horizontal-parallax/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为我的旅行照片创建一个带视差效果的水平画廊。”

每周 5 个新技能,1 分钟读完。

工作原理

它使用一个叫 Three.js 的图形库,以三维方式绘制图片。一种特殊效果让图片在你滚动页面时,以不同的深度移动,看起来有层次感。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Horizontal Parallax Gallery

Produce a single self-contained index.html — A horizontal-scroll WebGL gallery (Three.js): frames glide sideways with lerp smoothing and each image parallaxes its texture (UV shift) by its position in the viewport.

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-horizontal-parallax/
├── SKILL.md          ← you're reading this
├── example.html      ← the complete, working artifact (READ FIRST)
└── (assets, if any)

Credits / attribution

  • effect: David Faure / 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).

常见问题

什么是 WebGL?

它是一种技术,允许直接在浏览器中显示可交互的二维和三维图形,无需插件。

什么是“视差”?

这是一种视觉效果,前景元素比背景元素移动得更快,从而产生纵深感。

需要安装什么吗?

不需要,输出结果是一个可以直接在浏览器中运行的单个 HTML 文件。

详情

作者的原始描述

A horizontal-scroll WebGL gallery (Three.js): frames glide sideways with lerp smoothing and each image parallaxes its texture (UV shift) by its position in the viewport.

repo: nexu-io/open-design

热度

GitHub 星标
101k
排名
#1057
许可证
Apache-2.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能