如何用 Claude 制作 Lottie 动画

Claude 有两种方法制作 Lottie 动画:开源的 text-to-lottie 技能在 Claude Code 或 Codex 中编写 Lottie JSON 并实时预览;LottieFiles 的 Creator MCP 则根据提示词在 Lottie Creator 中生成可编辑的 dotLottie。motif 档案库收录了六条这类帖子,均来自 2026 年 9 月,其中四条出自独立创作者。

AI 辅助写作:本指南由 Claude Opus 5.5 起草,每条事实都链接到对应来源。

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.

该选哪条路线?

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 是怎么工作的?

先安装技能,再描述你想要的动画。智能体会搭建一个带播放器的工作区,每个动画是一个场景,以 `lottie.json` 文件保存在 `public/projects/` 下各自的文件夹里;智能体一边编辑,播放器一边重新加载,你可以拖动进度条查看并提出修改(text-to-lottie README)。README 自带的示例让 Claude 在透明背景上,沿 SVG 路径的自然方向、以 ease-in-out 渐变把它显现出来。生成的结果可以直接作为 Lottie JSON 使用,也可以导入 After Effects 进一步打磨。

怎样写提示词才能得到好的 Lottie?

  1. 给模型打好基础:提供 SVG、真实数据或截图。README 说,动画从具体素材出发时,效果会明显更好。
  2. 用动效设计的术语描述时间节奏,比如 ease-in、ease-out 和 ease-in-out。
  3. 描述镜头运动:推、摇、缩放,以及类似绑定骨骼的运动。
  4. 说明你需要哪些控件。默认情况下,输出通常只开放一个背景色控件。
  5. 如果时长重要,写明帧率和总帧数。

这五条建议总结自 text-to-lottie 提示词指南。同样的习惯在 Lottie Creator 里也管用;据 LottieFiles 介绍,这个 MCP 只需一条提示词就能创建图层、调整时间、生成变体并运行无障碍检查(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.

如何在应用或网站中播放这个文件?

在网页上,用 lottie-web 的 `lottie.loadAnimation` 配合 SVG 渲染器加载 JSON;在 React Native 中,通过 React Native Skia 的 Skottie 模块渲染;在 iOS 和 Android 上,使用 Lottie 库的 `LottieAnimationView`。text-to-lottie 的 README 演示了以上每一种,另外还有 Flutter(README)。对于 dotLottie 文件,LottieFiles 的 dotlottie-web 播放器已收录在 motif 的动画库列表中。

大家用 Claude 和 Lottie 做了什么?

常见问题

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".

来源

  1. diffusionstudio/lottie (text-to-lottie) README
  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. X 上的 @reallynattu(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
全部指南