Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)7.2k · #13479

unicorn-studio

Skill này làm gì

Skill này giúp AI thêm các cảnh hoạt ảnh được tạo trong trình chỉnh sửa Unicorn Studio vào trang web. Phù hợp với nhà thiết kế và người làm website muốn chuyển động phong phú mà không cần viết mã shader.

Khi nào nên dùng

  • ✓Khi bạn đã thiết kế một hoạt ảnh trong Unicorn Studio và muốn đưa nó lên Framer, Webflow hoặc website khác.
  • ✓Khi một cảnh Unicorn Studio không hiện vì vùng chứa của nó không có kích thước.
  • ✓Khi bạn muốn đặt chữ hoặc nút phía trên một nền hoạt ảnh.

Liên kết skill

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/unicorn-studio/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/unicorn-studio/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thêm hoạt ảnh Unicorn Studio tôi đã làm vào trang chủ và đảm bảo nó vừa trên điện thoại.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chỉ cách tải script của Unicorn Studio và đánh dấu một vùng trên trang bằng ID dự án, cùng các thiết lập về tốc độ, chất lượng và tải lười.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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-project has width/height.
  • 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.
  • 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
Câu hỏi thường gặp

Tôi có cần viết mã để dùng không?

Chỉ một lượng nhỏ. Bản thân hoạt ảnh được thiết kế bằng giao diện trực quan, còn skill bao gồm đoạn mã nhúng ngắn.

Vì sao hoạt ảnh của tôi hiện trống?

Thường là vì hộp chứa nó không có chiều rộng hoặc chiều cao. Skill giải thích cách cho nó một kích thước.

Có thể đặt nhiều hoạt ảnh trên một trang không?

Skill cảnh báo rằng quá nhiều cảnh có thể làm chậm trang, nên khuyên giữ số lượng thấp.

Chi tiết

Mô tả gốc của tác giả

Use when embedding and customizing Unicorn Studio interactive animations on the web (embed, responsive sizing, performance, layering with UI, fallbacks).

repo: MengTo/Skills

Độ phổ biến

Sao GitHub
7.2k
Vị trí xếp hạng
#13479
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự