Agent skill Web motion
Unicorn Studio
Use spatial graphics, scenes or materials to support a web experience.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/unicorn-studio --skill unicorn-studio --agent claude-code --yesCheck this file in your project.claude/skills/unicorn-studio/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/MengTo/Skills/tree/main/agent-skills/web-design/unicorn-studio --skill unicorn-studioSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Prepare a sized hero, a static poster or gradient, and either a published scene ID or an authorized exported scene JSON. The official plain-HTML example and the local SDK lifecycle check use 2.6.1.
View operation manualWhat this skill helps with
- Use spatial graphics, scenes or materials to support a web experience.
Good for
- 3D on the web
- Publisher
- Meng To
- Runtime
- unicornstudio@2.6.1 · WebGL 2 · scene source
- Bundled example
- The bundled demo is a self-contained Canvas 2D illustration. A real embed uses the Unicorn Studio SDK and one scene source.
- Skill name
unicorn-studio- Repository
MengTo/Skills
Common pitfall
Avoid this prompt
Leave the scene container at zero height and call UnicornStudio.destroy() on every route exit.
Scenes use their container dimensions; the global cleanup also removes other scenes still in use on the page.
Use these steps
- Inspect the demo and target
- Apply the runtime recipe
- Verify the browser behavior
Project walkthrough
Place one Unicorn Studio scene behind an original hero while keeping its foreground usable through loading, failure, and route changes.
Place one Unicorn Studio scene behind an original hero while keeping its foreground usable through loading, failure, and route changes.
Inspect the demo and target
The bundled demo is a self-contained Canvas 2D illustration. A real embed uses the Unicorn Studio SDK and one scene source.
Prompt · Step 1Use Unicorn Studio on [my tide forecast hero]. Read the installed SKILL.md and REFERENCES.md. Confirm whether I have a published embed ID or a hosted JSON export, then choose a single source. Measure the hero at mobile and desktop widths, mark the static poster layer, and keep the heading and link in ordinary HTML.Apply the runtime recipe
Place one Unicorn Studio scene behind an original hero while keeping its foreground usable through loading, failure, and route changes.
Prompt · Step 2Use the documented 2.6.1 SDK in a client-only mount. For static HTML, set data-us-project to the embed ID or data-us-project-src to the JSON URL, then call UnicornStudio.init() once the SDK and element are ready. Reserve container width and height and start with scale 0.75, dpi 1, fps 30, and lazy loading. Use production CDN mode only for a hosted scene published in production mode. For a dynamic mount, use the official wrapper or SDK addScene, retain the scene handle, and call scene.destroy() on unmount. Keep the poster visible on missing content, load failure, and reduced motion.Verify the browser behavior
A sized decorative container has one canvas after mounting and no canvas after scene cleanup.
- A sized decorative container has one canvas after mounting and no canvas after scene cleanup.
- The foreground link and fallback remain available during loading and reduced motion.
Prompt · Step 3On narrow and wide screens, check that the scene fits and the foreground link remains keyboard-operable. Block the scene request, then repeat with reduced motion before loading the route. Mount, unmount, and mount the route again and count canvases. When a published ID or authorized export is available, record which source rendered and any request errors from that run.
Implementation lookup
Find the actual behavior in the recipe and check it in your browser.
Tune the documented controlsInputs
- Command or reference
data-us-project / data-us-project-src · scale · dpi · fps · lazyLoad- Examples
- A sized decorative container has one canvas after mounting and no canvas after scene cleanup.
Check the fallback and lifecycleVerify
- Command or reference
Reload and recheck- Examples
- The foreground link and fallback remain available during loading and reduced motion.
FAQ
Which plan supports embedding and exporting?
The official Free plan includes up to eight publishes with Unicorn branding. Legend includes unlimited logo-free publishes and JSON export for self-hosting. A self-hosted scene still needs the SDK.
What does the installed demo include?
The bundled demo is a self-contained Canvas 2D illustration. A real embed uses the Unicorn Studio SDK and one scene source.