如何用 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.
该选哪条路线?
| Route | What you get | Runs in | Licence or plan | How to start |
|---|---|---|---|---|
| text-to-lottie by Diffusion Studio | Lottie JSON scenes, shown in a bundled player that updates while the agent edits | Claude Code, Codex or another agent that supports skills | MIT, 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 LottieFiles | A 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 render | Claude, Cursor, Codex or another MCP client | Needs a LottieFiles sign-in; the announcements state no plan requirement | Claude Code: `claude mcp add --transport http creator-mcp https://creator-mcp.lottiefiles.com/mcp`, then sign in with LottieFiles |
| Claude Motion or a code route | An MP4 video, not a Lottie | Claude app, Claude Code | See that guide | Use 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?
- 给模型打好基础:提供 SVG、真实数据或截图。README 说,动画从具体素材出发时,效果会明显更好。
- 用动效设计的术语描述时间节奏,比如 ease-in、ease-out 和 ease-in-out。
- 描述镜头运动:推、摇、缩放,以及类似绑定骨骼的运动。
- 说明你需要哪些控件。默认情况下,输出通常只开放一个背景色控件。
- 如果时长重要,写明帧率和总帧数。
这五条建议总结自 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 做了什么?
- Nattu 的发布短片:Opus 5.5 在 Lottie Creator 中为自己的发布做了动画,“384 个粒子,全部是原生关键帧”(2026年9月22日)。
- Mau 的讲解幻灯片:用 Lottie Creator MCP 制作的 Opus 5.5 讲解动画,可作为 Lottie 文件编辑(2026年9月23日)。
- Kelly 的动效集锦:用 Lottie Creator MCP 为 Claude 制作的矢量集锦(2026年9月26日)。
- yaamin 的一次成型之作:“只用了 10 分钟”就做出来,每个图层都可编辑(2026年9月23日)。
- LottieFiles 自己的测试,即一组 Claude Opus 5.5 与 ChatGPT-6 Sol 的对比 和一组 Sonnet 5.5 作品,出自该工具的开发商。
常见问题
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".
来源
- diffusionstudio/lottie (text-to-lottie) README
- LottieFiles: Your AI can now control Lottie Creator (2026-04-15)
- LottieFiles/dotlottie-web
- airbnb/lottie-web
- Claude Help Center: Get started with Claude Motion
- X 上的 @reallynattu(2026-09-22)
- LottieFiles: Creator MCP, the motion engine for AI agents (2026-11-10)
- LottieFiles: What is Lottie AI (2026-11-09)
- LottieFiles docs: MCP