About this skill
Lottie is vector animation stored as JSON, and lottie-web is the player that draws it. You don't need After Effects: this skill writes the file from a script, checks it, and plays it. It is also plain about the costs. The file is tiny, the player isn't, and it says when Lottie is the wrong choice. A Lottie file can also carry code, and the player's default build runs it. We tested that, and the skill has the rules and a checker for files you didn't write.
You say
Write me an original looping Lottie of a paper boat in a storm, under 30 KB, with no After Effects. Play it on my landing page, and tell me the real size including the player.
How it works
- Your agent checks that Lottie is the right choice, and says so if a CSS animation or a video would be better.
- It writes the scene from a script: shape layers, keyframes, trim paths and repeaters, as a JSON file.
- A checker fails on code and outside files, and on the mistakes that draw wrongly without an error.
- It plays the file with a light player build, or captures it with goToAndStop, and reports the sizes it measured, player included.
Getting a good result
- Use a light player build, especially for any file you didn't write. The package's default build runs expressions with eval.
- Colors are 0 to 1, a group's last item is its transform, and path keyframes keep the same number of vertices. Mistakes here fail silently.
- Slide a wave sideways by whole wavelengths rather than morphing it. A morph goes flat halfway, and sliding loops cleanly.
What you get
- How to write Lottie JSON safely: values, keyframes, trim paths, repeaters and the mistakes that fail silently
- A checker with no dependencies, which fails on expressions, outside files and broken shapes
- The renderers compared, and when Lottie is the wrong choice
- A generator for the lighthouse scene on this page, with the sizes it measures
- A capture script for stills and MP4, using goToAndStop
Good fit
- Illustrated loops on a site or in an app
- Vector scenes that stay sharp at every size
- Pages with several animations, where one player serves them all
Not for
- One small icon: a CSS animation needs no 164 KB player
- Photographic looks, footage, soft blurs and heavy textures
- Thousands of moving things, or anything that reacts to layout or data
How to install it
- Download the ZIP and unzip it.
- Move the lottie-animation folder into your agent's skills folder, such as ~/.claude/skills/. Your agent asks before it installs lottie-web in a project.
- Start a new session and ask for what you want to make.
Needs: An agent that reads skills, Node.js 22 or later for the scripts, Chrome and FFmpeg to capture video.
FAQ
Is it really free?
Yes. Create a free AdAnt account to download the ZIP. There is no card and no trial timer, and lottie-web is free too. You don't need After Effects, LottieFiles or any other account.
What does setup download and run?
After asking, it installs one npm package, lottie-web at an exact version: 25 MB on disk with no dependencies and no install script, and nearly all of that is build variants. Only the one player file you load goes to a browser. The scripts in the ZIP use no packages. To make video, the capture script starts your own Chrome and FFmpeg.
Can I use it commercially?
lottie-web is under the MIT license, which allows commercial use as long as you keep its copyright notice with copies of the library. The animation you generate is yours. This skill downloads no marketplace assets, whose own licenses would otherwise apply.
Can a Lottie file run code?
Yes. A value can hold an After Effects expression, and the full lottie-web builds, including the package's default, pass it to eval. We tested this on 5.13.0 in Chrome. The player sets window, document and fetch to null around the expression, but our test got past that to the real ones, so treat any file with expressions as a script from whoever made it. The light builds have no eval and our test didn't run on them, and a Content-Security-Policy without unsafe-eval stopped it on the full build. A file can also name an outside image, which even a light build requests, so opening the file can tell someone you did. The skill's checker fails on both.
How small is it really?
The scene on this page is 27.4 KB, or 2.1 KB gzipped. The smallest player, lottie_light.min.js, is 164.4 KB, or 45.7 KB gzipped. The same 8 seconds as H.264 at 800 by 600 came to 216.7 KB at the quality we chose. So one small file on one page may not save anything, while several on a page will, since they share a player. These are measured numbers, and the clip shows them.
What did AdAnt run, and what didn't it?
We installed lottie-web 5.13.0 in a clean folder on an Apple Silicon Mac, following this skill, generated the scene, passed it through the checker, and rendered the clip with goToAndStop. The clip plays one JSON file through all three renderers. We ran the checker on a bad file, which failed as it should, and ran the expression tests above. We tested only in Chrome. We didn't test Safari, Firefox, the mobile players or After Effects exports, and the last lottie-web release is from May 2025.
Related skills

LosslessCut Trims
Cut long recordings fast without re-encoding, and measure where each cut really landed.

FFmpeg Finishing
Turn one master into 9:16, 1:1 and 16:9 files with safe-zone captions, measured loudness and a size cap.

Remotion Video
Make video as React components, where every frame comes from the frame number, and render one template for any data.

Tweakpane Live Tuning
Add a live panel to an animation so you can tune it by hand, then write the values you chose back to the code.

Blender Scenes through MCP
Have your agent build a Blender scene one step at a time, look at each result, and render the finished shot.

librosa Beat Sync
Measure a track's beats with librosa, drive an animation from the JSON it writes, and prove the sync by measuring the video.

Three.js Postprocessing
Give a flat three.js shot HDR bloom, depth of field, tone mapping and a color grade, in the right order.

Motion UI Animation
Build UI animation with springs, layout transitions and gestures from one written motion language, with a linter that catches drift.

Anime.js Timelines
Choreograph grid staggers, self-drawing SVG lines and things that follow a path on one Anime.js timeline you can seek.

WhisperX Word Captions
Get a timestamp for every spoken word on a plain CPU, export SRT and VTT, and drive word-highlighted captions from the JSON.

Jolt Physics Simulation
Simulate thousands of rigid bodies with Jolt and render the collapse, repeatably, frame by frame.

Three.js Path Tracing
Render a three.js scene with real path tracing, so glass, chrome and soft light come out physically right.