Lottie Animations skill
Integrate JSON and dotLottie assets with playback controls, cleanup and performance checks.
Community · Claude Design Skillstack| Author | Claude Design Skillstack |
|---|---|
| Licence | MIT (LICENSE); Apache-2.0 (plugin.json) |
| Source | freshtechbro/claudedesignskills · SKILL.md on GitHub |
| Project website | docs.lottiefiles.com/en |
| Works in | Claude Code · Codex, Gemini CLI, Cursor, Copilot |
| Read from the source on |
lottie-animations helps an agent embed designer-created Lottie JSON or dotLottie files into web interfaces.
It covers lottie-web, React wrappers, dotLottie runtimes, segment playback and worker rendering. Animation assets and their licences must be supplied separately.
From the skill's SKILL.md: # Lottie Animations
What it does
- Select a runtime compatible with the app and animation format.
- Wire playback, seeking, events and optional scroll synchronization.
- Clean up instances and listeners, then test export compatibility and performance.
What you get
- Animation player components with playback controls.
- Optional optimized JSON and framework boilerplate.
When to use it
- Embed an existing onboarding or loading animation.
- Investigate heavy assets or player lifecycle leaks.
When not to use it
- Expecting a player skill to create an original After Effects animation.
What it needs
- A licensed JSON or .lottie animation plus the chosen web runtime.
- Python 3 for optional generators and optimizer; After Effects and some hosted services have separate costs.
Files in the skill
| File or folder | What it is for |
|---|---|
SKILL.md | Runtime selection, controls and pitfalls. |
scripts/generate_lottie_component.py | Framework player boilerplate. |
scripts/optimize_lottie.py | Local JSON optimization helper. |
references/api_reference.md | Player API reference. |
Licence as found in the repository on 2026-11-17: MIT (LICENSE); Apache-2.0 (plugin.json).
Example prompts
Type one of these after installing; naming the skill makes sure it is used.
- Embed this local dotLottie asset with play and pause controls and cleanup on unmount.
- Review this player for listeners that survive route changes.
- Compare SVG, canvas and worker rendering for this animation on a phone.
How to install lottie-animations
Assets and distribution
Keep the referenced images and fonts with the animation, and review their separate licences. Remote assets require network access and suitable CORS settings.
The root LICENSE says MIT but plugin metadata says Apache-2.0; that upstream inconsistency also applies to this page’s source package.
A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:
Claude Code: from the plugin marketplace
- Start Claude Code in a terminal with
claude. - Add the marketplace (once per computer):
/plugin marketplace add freshtechbro/claudedesignskills - Install the plugin. Claude Code opens its details first: check what it will add (skills, hooks, MCP servers), then choose whether it is for you, for everyone on this repository, or for you in this repository only.
/plugin install lottie-animations@claude-design-skillstack - Type / and look for
/lottie-animations:lottie-animations, or simply ask for the task.
From your shell instead of a session:
claude plugin marketplace add freshtechbro/claudedesignskills
claude plugin install lottie-animations@claude-design-skillstackClaude Code: copy the folder into your skills folder
Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).
git clone --depth 1 https://github.com/freshtechbro/claudedesignskills.git
mkdir -p ~/.claude/skills
cp -R claudedesignskills/plugins/individual/lottie-animations/skills/lottie-animations ~/.claude/skills/Claude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /lottie-animations or just describe the task.
On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.
Codex, Gemini CLI, Cursor and GitHub Copilot
These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:
git clone --depth 1 https://github.com/freshtechbro/claudedesignskills.git
mkdir -p .agents/skills
cp -R claudedesignskills/plugins/individual/lottie-animations/skills/lottie-animations .agents/skills/| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ | Type $ or run /skills to pick a skill; Codex also chooses one when your task matches. |
| Gemini CLI | .agents/skills/.gemini/skills/ | ~/.agents/skills/~/.gemini/skills/ | Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you. |
| Cursor | .agents/skills/.cursor/skills/ | ~/.agents/skills/~/.cursor/skills/ | Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders. |
| GitHub Copilot | .github/skills/.agents/skills/.claude/skills/ | ~/.copilot/skills/~/.agents/skills/ | Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later). |
Sources for these steps
Checked against each vendor's documentation on 2026-11-14:
Player and asset are separate
Use a local asset when you want predictable hosting and version control. A remote animation URL adds availability, privacy and CORS considerations.
Pause off-screen work where appropriate and offer a reduced-motion experience; small encoded files can still be expensive to render.
Questions about lottie-animations
Does the skill include free animation artwork?
It includes integration examples, not a blanket licence for third-party animation assets.
Are Lottie and dotLottie identical?
Lottie JSON is the animation data format; dotLottie packages animation data and assets in a compressed container.
Will every After Effects effect render?
No. Feature support differs by exporter and runtime. Test the actual exported file early.
Can I use it without React?
The source includes plain JavaScript, Vue and Svelte patterns as well as React. Validate the installed runtime API.
More AI skills
Related skills
Motion & Framer Motion skill
Community · Claude Design SkillstackCreate React motion components, exit transitions, variants, gestures and layout animations.Fixing Motion Performance skill
Community · ibelickRepair animation jank by reviewing measurements, scroll work, paint cost and compositor behavior.Thumbnail Design skill
Community · Frank HeijdenrijkBrief honest, mobile-readable video thumbnails and plan a native comparison test.Design and Templates skill
Community · Frank HeijdenrijkSpecify a reusable brand kit, template family and production workflow for recurring social graphics.Quote Cards and Text Graphics skill
Community · Frank HeijdenrijkChoose and attribute one strong line, then brief a readable typographic card without fabricating quotes.Pinterest Pin Design skill
Community · Frank HeijdenrijkBrief vertical Pinterest concepts with readable keyword overlays and distinct variants for a real destination.