Cách làm hoạt ảnh Lottie với Claude

Claude làm hoạt ảnh Lottie theo hai cách: kỹ năng mã nguồn mở text-to-lottie viết Lottie JSON trong Claude Code hoặc Codex và xem trước trực tiếp, còn Creator MCP của LottieFiles dựng một file dotLottie chỉnh sửa được trong Lottie Creator từ một prompt. Kho lưu trữ của motif có sáu bài đăng như vậy từ tháng 9 năm 2026, bốn bài của nhà sáng tạo độc lập.

Viết với sự hỗ trợ của AI: bản nháp hướng dẫn này được soạn cùng Claude Opus 5.5, và mỗi dữ kiện đều dẫn link đến nguồn của nó.

Checked 2026-11-12. A Lottie is a small vector animation file that a player draws inside an app or web page, so it scales to any size and can loop or react to state. Claude does not export one by itself, but two routes give you a real Lottie file: a skill for coding agents and an MCP connection to LottieFiles' editor. motif's archive has six posts made the second way, all from September 2026, and none yet from the first.

Bạn nên chọn cách làm nào?

Routes to a Lottie file with Claude, checked 2026-11-12
RouteWhat you getRuns inLicence or planHow to start
text-to-lottie by Diffusion StudioLottie JSON scenes, shown in a bundled player that updates while the agent editsClaude Code, Codex or another agent that supports skillsMIT, free (5,708 stars, last pushed 2026-07-25)`npx skills add diffusionstudio/lottie`, then ask for an animation using `text-to-lottie`
Lottie Creator MCP by LottieFilesA dotLottie file built as editable layers in Lottie Creator; since 2026-11-10 also an MP4 (H.264) or WebM with alpha through a queued renderClaude, Cursor, Codex or another MCP clientNeeds a LottieFiles sign-in; the announcements state no plan requirementClaude Code: `claude mcp add --transport http creator-mcp https://creator-mcp.lottiefiles.com/mcp`, then sign in with LottieFiles
Claude Motion or a code routeAn MP4 video, not a LottieClaude app, Claude CodeSee that guideUse this when the result is for social video, not for an app

text-to-lottie hoạt động thế nào?

Bạn cài kỹ năng, rồi mô tả hoạt ảnh. Agent dựng một không gian làm việc có trình phát, trong đó mỗi hoạt ảnh là một cảnh, được lưu thành file `lottie.json` trong thư mục riêng dưới `public/projects/`, và trình phát tải lại mỗi khi agent chỉnh sửa, nhờ vậy bạn có thể tua qua lại và yêu cầu thay đổi (README của text-to-lottie). Ví dụ trong chính README yêu cầu Claude làm lộ dần một đường SVG theo hướng tự nhiên của nó, với gradient ease-in-out trên nền trong suốt. Kết quả có thể dùng trực tiếp dưới dạng Lottie JSON hoặc nhập vào After Effects để tinh chỉnh.

Viết prompt thế nào để có một Lottie tốt?

  1. Cho mô hình chất liệu cụ thể: đưa SVG, dữ liệu thật hoặc ảnh chụp màn hình. README cho biết kết quả tốt hơn đáng kể khi hoạt ảnh bắt đầu từ tài nguyên cụ thể.
  2. Dùng thuật ngữ thiết kế chuyển động như ease-in, ease-out và ease-in-out để chỉ nhịp thời gian.
  3. Mô tả chuyển động camera: push, pan, zoom và chuyển động kiểu rig.
  4. Yêu cầu những nút điều khiển bạn cần. Mặc định, đầu ra thường chỉ có nút điều khiển màu nền.
  5. Nêu tốc độ khung hình và tổng số khung hình khi thời lượng quan trọng.

Năm mẹo này được tóm tắt từ hướng dẫn viết prompt của text-to-lottie. Những thói quen ấy cũng có ích với Lottie Creator, nơi LottieFiles cho biết MCP có thể tạo layer, chỉnh nhịp thời gian, tạo biến thể và chạy kiểm tra khả năng tiếp cận chỉ từ một prompt (LottieFiles).

Not every route uses Claude. LottieFiles also launched Lottie AI on 9 November 2026, a standalone text-to-Lottie generator with its own Turbo and Quality modes; its announcement does not mention Claude.

Phát file trong ứng dụng hoặc trên trang web thế nào?

Trên web, tải JSON bằng `lottie.loadAnimation` của lottie-web với một SVG renderer; trong React Native, render qua module Skottie của React Native Skia; trên iOS và Android, dùng `LottieAnimationView` của các thư viện Lottie. README của text-to-lottie trình bày từng cách này, cùng với Flutter (README). Với file dotLottie, trình phát dotlottie-web của LottieFiles có trong danh sách thư viện của motif.

Mọi người đã làm gì với Claude và Lottie?

Câu hỏi

Can Claude make Lottie animations?

Yes, through a skill or an MCP. The text-to-lottie skill writes Lottie JSON in Claude Code or Codex (text-to-lottie), and the Lottie Creator MCP lets Claude build a dotLottie in LottieFiles' editor (LottieFiles).

Is text-to-lottie free?

Yes. The repository is MIT-licensed and installs with `npx skills add diffusionstudio/lottie`; it needs no paid API (text-to-lottie). It runs in your coding agent, so your Claude plan limits still apply.

Can I edit the Lottie afterwards?

Yes. text-to-lottie output can be imported into After Effects, and files made through the Lottie Creator MCP are built from editable layers in Lottie Creator (text-to-lottie, LottieFiles).

Should I use Lottie or MP4?

Use Lottie for animation inside a product (loaders, icons, onboarding, empty states) and MP4 for posting a video. Claude Motion exports MP4 only, on Team and Enterprise plans; the Lottie Creator MCP can export both a Lottie and, since 10 November 2026, an MP4 or WebM.

Is the Lottie Creator MCP local or remote?

Remote since 10 November 2026. LottieFiles now lists a hosted server at creator-mcp.lottiefiles.com/mcp that you add to Claude Code with `claude mcp add --transport http` and sign in to; its docs no longer describe the local npx package. LottieFiles' earlier announcement described a local bridge that showed "Local MCP bridge connected".

Nguồn

  1. README của diffusionstudio/lottie (text-to-lottie)
  2. LottieFiles: Your AI can now control Lottie Creator (2026-04-15)
  3. LottieFiles/dotlottie-web
  4. airbnb/lottie-web
  5. Claude Help Center: Get started with Claude Motion
  6. @reallynattu trên X (2026-09-22)
  7. LottieFiles: Creator MCP, the motion engine for AI agents (2026-11-10)
  8. LottieFiles: What is Lottie AI (2026-11-09)
  9. LottieFiles docs: MCP
Tất cả hướng dẫn