unicorn-studio
它能做什么
这个技能帮助 AI 把在 Unicorn Studio 编辑器中制作的动画视觉场景添加到网页中。适合希望获得丰富动效、又不想编写着色器代码的设计师和网站搭建者。
适用场景
- ✓当你在 Unicorn Studio 中做好动画,并希望用在 Framer、Webflow 或其他网站上时。
- ✓当 Unicorn Studio 场景因为容器没有尺寸而不显示时。
- ✓当你希望在动画背景之上放置文字或按钮时。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/unicorn-studio/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把我做的 Unicorn Studio 动画加到我的首页,并确保它在手机上也能正常显示。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能说明如何加载 Unicorn Studio 脚本,用项目 ID 标记页面区域,并设置速度、质量和延迟加载选项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Unicorn Studio — No-code WebGL Scenes (Embed/SDK) Skill
When to use
- Designers want custom WebGL visuals without hand-coding shaders/three.js
- You need “designed” effects layered with text/images/video, with built-in interactivity
- Site builders: Framer, Webflow, Wix, Figma Sites, etc.
What it is
- A scene editor (layers + effects + events) that exports:
- Embed via Unicorn Studio SDK (small JS library)
- Or JSON/code export for faster/self-hosted loading (plan-dependent)
Key embed patterns
- Load SDK (can be in
<head>or footer depending on above-the-fold):- UMD from jsDelivr (versioned)
- Call
UnicornStudio.init()once DOM is ready
- Add attributes to a container element:
data-us-project="PROJECT_ID"- Optional performance/behavior params:
data-us-scale(render scale)data-us-dpi(resolution multiplier)data-us-fps(cap FPS)data-us-lazyload="true"data-us-production="true"
- Optional JSON source:
data-us-project-src="https://.../scene.json.txt"
Events (authoring-side)
- Appear (entrance), Scroll (progress/velocity), Hover, Mousemove
- Use events for “feels interactive” without writing JS.
Common pitfalls
- Container has no defined dimensions → scene won’t display
- Ensure the element with
data-us-projecthas width/height.
- Ensure the element with
- Too many scenes on one page → WebGL context limits + memory
- Prefer <10 scenes/page; WebGL context max ~16.
- Performance on low-end devices
- Use
data-us-scale/data-us-dpi/data-us-fps; reduce dynamic layers/effects.
- Use
- Site builder preview limitations
- Many builders won’t render in edit mode; must preview/publish to see it.
Quick recipes
1) Basic embed container
<div style="width: 100%; height: 420px" data-us-project="YOUR_PROJECT_ID"></div>
2) Performance-first embed
<div
style="width: 100%; height: 420px"
data-us-project="YOUR_PROJECT_ID"
data-us-lazyload="true"
data-us-production="true"
data-us-scale="0.75"
data-us-dpi="1.25"
data-us-fps="45"
></div>
What to ask the user
- Target platform: Webflow / Framer / coded site?
- Is the scene above-the-fold? (affects script placement and lazyload)
- Mobile support requirement + acceptable quality/FPS
- Number of scenes on the page and whether JSON export is available
常见问题
使用它需要写代码吗?
只需少量代码。动画本身是在可视化工具中设计的,该技能涵盖简短的嵌入代码。
为什么我的动画显示为空白?
通常是因为容纳它的盒子没有宽度或高度。该技能说明如何为它设置尺寸。
一个页面可以放很多动画吗?
该技能提醒,场景过多会拖慢页面,因此建议控制数量。
详情
作者的原始描述
Use when embedding and customizing Unicorn Studio interactive animations on the web (embed, responsive sizing, performance, layering with UI, fallbacks).
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13479
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。