Lottie, Rive, Spine or CSS with Claude Code
Lottie, Rive and Spine are made to play animation inside apps, sites and games. If you want a video file for YouTube Shorts or Reels, the fit is a code-rendered video, where Claude Code writes HTML scenes and HyperFrames records them to MP4. CSS sits in the middle: it animates a page well, and it becomes a video only after you render it. ReelStyles is built for the video side and sells looks for it.
I sell ReelStyles, so weigh that. The facts below come from each tool's own pages, opened on 2 December 2026.
The five options side by side
| Lottie | Rive | Spine | CSS animation | Code-rendered video | |
|---|---|---|---|---|---|
| What it is | A JSON animation exported from After Effects with Bodymovin | A design tool and open runtimes with state machines | 2D skeletal animation software for games | Native browser animation | HTML scenes rendered to MP4 |
| Plays in | Web, Android, iOS, React Native | Web, React, React Native, Flutter, Apple, Android, Unity, Unreal, C++ and more | Game engines through its runtimes | Any browser | Anywhere an MP4 plays |
| Licence | lottie-web is MIT | Runtimes are MIT | Paid editor | Not applicable | HyperFrames is Apache-2.0 |
| Reacts to input | Plain JSON, no. dotLottie can carry state machines | Yes, built in | Yes, in your game code | Yes, with CSS and JavaScript | No, a fixed film |
| Gives you an MP4 | Not by itself | I could not confirm it in the runtime docs | Yes, AVI or Quicktime export | Not by itself | Yes, that is its job |
The Rive row needs a word. The page I opened covers runtimes and file loading. It points to a separate Exporting page, and I did not find a video export statement there, so check it before you plan around it.
Lottie
Lottie plays After Effects work in an app. The lottie-web README says it parses animations exported as JSON with Bodymovin and renders them natively, with SVG, canvas or HTML renderers. It suits loaders, icons and onboarding that just play. According to Rive's comparison page, plain Lottie JSON puts interactivity in your own app code, and dotLottie files can now carry state machines.
Claude Code can write the code that loads a Lottie file. It does not draw you a new After Effects project. For a video, you would render the page that plays it. The HyperFrames docs say its runtime can seek registered Lottie animations, so the two can work together.
Rive
Rive is a tool to design, animate and wire interactive graphics. Its runtimes run in many environments and are MIT licensed. Rive's own page says files are often 10 to 15 times smaller than equivalent Lottie JSON, which is a vendor claim, so treat it as one. It suits a mascot that reacts to a tap, which is app work and not video work.
Spine
Spine is skeletal 2D animation for games. Its purchase page says a licence lets you export animation data, images, video and texture atlases, and use the runtimes in your own games and apps. Video export is AVI or Quicktime.
CSS
CSS animation needs no extra tool. It fits hover states, page transitions and small loops. For video, the issue is timing: a recording captures it live, and a renderer needs to step it frame by frame. Text animation code to MP4 shows the port.
Code-rendered video
This is the path for Shorts. Claude writes each scene as HTML, CSS, SVG, canvas or three.js, and HyperFrames records it to MP4. The docs say rendering asks for one frame at a time, so the same frame always comes out the same. You get a file you can upload anywhere. What you give up is interactivity, because a film does not react to a viewer.
Pick this if
- Pick Lottie if a designer already makes your animation in After Effects and it plays inside an app or site.
- Pick Rive if the graphic must react to input, such as a character in an app.
- Pick Spine if you ship a game with 2D characters.
- Pick CSS if the animation lives on a web page.
- Pick code-rendered video if the end product is a video file for Shorts, Reels or a launch clip. Start with Remotion vs HyperFrames to choose an engine, and see the pricing page for the style kits.
Questions
Can Claude Code make a Lottie file?
It can write the JSON or code around one, but After Effects and Bodymovin are how designers normally export Lottie. I have not tested Claude on generating Lottie JSON from scratch for this post.
Can I turn a Lottie or Rive animation into an MP4?
Lottie, yes, through a page that plays it and a renderer that seeks it. For Rive, check the export options in the Rive editor and its Exporting docs, since I could not confirm video export from the runtime docs.
What about pixel animation?
Pixel art works well as canvas or CSS steps in a rendered video. The pixel RPG style is one example.
Sources
- airbnb/lottie-web (checked 2 December 2026)
- Rive: Rive as a Lottie alternative (checked 2 December 2026)
- Rive runtimes (checked 2 December 2026)
- Spine purchase page (checked 2 December 2026)
- HyperFrames frame adapters (checked 2 December 2026)
- HyperFrames FAQ (checked 2 December 2026)