Back to Skills

lottie-animations

After Effects animation rendering for web and React applications. Use this skill when implementing Lottie animations, JSON vector animations, interactive animated icons, micro-interactions, or loading animations. Triggers on tasks involving Lottie, lottie-web, lottie-react, dotLottie, After Effects JSON export, bodymovin, animated SVG alternatives, or designer-created animations. Complements GSAP ScrollTrigger and Framer Motion for scroll-driven and interactive animations.

624stars102forksUpdated 7/29/2026

Security Assessment

Safe(93/100)
Security Score93/100

About lottie-animations

Lottie Animations is a front-end skill for rendering After Effects animations in web and React applications via Lottie. It solves the problem of shipping high-fidelity, designer-created motion as lightweight, scalable assets instead of GIF or video — animated icons, micro-interactions, loading indicators, onboarding sequences, and marketing animations — with runtime control over playback, color, speed, and segments.

The skill explains the Lottie format types (human-readable JSON and the compressed dotLottie archive that can cut file size dramatically), and the main libraries: lottie-web for the original renderer (svg/canvas/html), @lottiefiles/dotlottie-web and dotlottie-react for the modern recommended path, and lottie-react as an alternative wrapper. It covers animation data sources (LottieFiles hosting, bundled local files, and custom After Effects exports), with worked HTML and React examples including playback controls. Reference files provide a detailed After Effects to Lottie export guide (Bodymovin plugin install, recommended web export settings, supported/partial/unsupported features, and file-size optimization), an API reference, a performance guide, and Python helper scripts for generating a Lottie React component and optimizing Lottie files.

Target users are web and React developers, and the designers collaborating with them, who need consistent cross-platform animation with small footprints. Prerequisites are a JavaScript/React environment and the chosen Lottie library, plus Adobe After Effects with the Bodymovin plugin for custom exports. It complements scroll-driven and interactive animation tools like GSAP ScrollTrigger and Framer Motion. The skill is documentation and tooling focused on animation delivery, with helper scripts operating on local animation assets.

FAQ

What is Lottie and why use it?

Lottie renders After Effects animations at runtime from JSON, giving vector scalability, much smaller files than GIF or video, and runtime editability of color, speed, and segments across platforms.

Which library should I use?

The skill recommends the modern @lottiefiles/dotlottie-web and dotlottie-react path, but also documents the original lottie-web renderer and the lottie-react wrapper.

What is the difference between JSON and dotLottie?

JSON is the original human-readable format; dotLottie is a compressed ZIP archive holding JSON plus assets that can reduce file size substantially and is recommended for production.

How do I create custom animations?

Export from Adobe After Effects using the Bodymovin plugin. The export guide covers install, recommended web settings, supported features, and file-size optimization.

Are there tools to help integrate or optimize animations?

Yes. The skill includes Python scripts to generate a Lottie React component and to optimize Lottie files, plus performance and API references.

All Files

7 files
references/after_effects_export.md9.5 KB
View
references/api_reference.md15.3 KB
View
assets/starter_lottie/README.md1.7 KB
View
SKILL.md17.6 KB
View
references/performance_guide.md11.3 KB
View
scripts/generate_lottie_component.py5.5 KB
View
scripts/optimize_lottie.py2.6 KB
View

Install lottie-animations

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill