Skip to content

Lottie Animations skill

Integrate JSON and dotLottie assets with playback controls, cleanup and performance checks.

Community · Claude Design Skillstack
AuthorClaude Design Skillstack
LicenceMIT (LICENSE); Apache-2.0 (plugin.json)
Sourcefreshtechbro/claudedesignskills · SKILL.md on GitHub
Project websitedocs.lottiefiles.com/en
Works inClaude 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

This is a community skill by Claude Design Skillstack, not checked by us or by Anthropic. Skills can tell the agent to run code, read files or call the network. Before installing, read its SKILL.md and every script in the folder, and look for anything that does not match what it says it does.

What it does

  1. Select a runtime compatible with the app and animation format.
  2. Wire playback, seeking, events and optional scroll synchronization.
  3. 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 folderWhat it is for
SKILL.mdRuntime selection, controls and pitfalls.
scripts/generate_lottie_component.pyFramework player boilerplate.
scripts/optimize_lottie.pyLocal JSON optimization helper.
references/api_reference.mdPlayer 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

  1. Start Claude Code in a terminal with claude.
  2. Add the marketplace (once per computer):
    /plugin marketplace add freshtechbro/claudedesignskills
  3. 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
  4. 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-skillstack

Claude 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/
AgentProject folderYour user folderNotes
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).
Only install skills you trust. Anthropic's advice is to use skills only from trusted sources, and to read every file of any other skill before using it: a skill can direct the agent to run commands, read files or send data in ways its description does not mention.

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

Skill categories