lottie-animation

Integrate, control, and export Lottie animations across web and mobile runtimes.

3|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/langgenius/due-date-hq-jwl --skill lottie-animation-langgenius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lottie-animation
Source: https://github.com/langgenius/due-date-hq-jwl/tree/main/.claude/skills/lottie-animation
Command: npx skills add https://github.com/langgenius/due-date-hq-jwl --skill lottie-animation-langgenius

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @lottiefiles/dotlottie-web, @lottiefiles/dotlottie-react, @lottiefiles/lottie-interactivity, and includes scripts (resource) and references (resource) components.

What problem does it solve? Shipping After Effects animations to production requires choosing the right runtime, controlling playback programmatically, and avoiding export pitfalls that break rendering across platforms. ## Core Features & Use Cases - Runtime Integration: Set up dotLottie-web or lottie-web players in vanilla JS or React, with playback control via play, pause, setFrame, setSegment, and setMode. - Interactivity & Theming: Build scroll-driven or cursor-driven animations with lottie-interactivity, and recolor animations at runtime using embedded dotLottie themes. - AE Export Guidance: Follow the Bodymovin export checklist covering unsupported After Effects features like expressions, effects, and 3D layers. - Use Case: A designer hands you a .lottie file for an onboarding flow; you embed it in a React component, loop a loading segment, and switch to a success segment on completion. ## Quick Start Ask the AI to integrate a Lottie animation file into a web page with autoplay, looping, and scroll-driven frame control.

Frequently Asked Questions about lottie-animation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I play a Lottie animation on a web page?

Install @lottiefiles/dotlottie-web, create a DotLottie instance with a canvas element and your .lottie or .json source, then set autoplay and loop. For React, use the DotLottieReact component from @lottiefiles/dotlottie-react with the same props.

What is the difference between .lottie and .json Lottie files?

A .json file is raw Bodymovin output, human-readable but larger. A .lottie file is a zipped container often 60-80% smaller that can bundle multiple animations, images, and themes, and is preferred for shipping with the dotLottie runtime.

How do I make a scroll-driven Lottie animation?

Disable autoplay, read totalFrames after the load event, then map scroll progress from 0 to 1 onto frames using setFrame on scroll events. Alternatively use @lottiefiles/lottie-interactivity with scroll mode and seek actions for declarative wiring.

Can I change Lottie animation colors at runtime?

Yes, if the .lottie file embeds named themes, call setTheme with the theme id to recolor without re-exporting. Manual patching of color arrays in the JSON is possible but brittle since it depends on the exact layer structure.

Which After Effects features are not supported by Lottie?

Expressions, most effects like blurs and glows, 3D layers, cameras, audio, adjustment layers, and layer styles are unsupported. Bake expressions to keyframes, replace effects with shape layers and gradients, and verify output on each target runtime.

Does the same Lottie file work on iOS and Android?

Yes, the same .lottie or .json plays across platforms using lottie-ios, lottie-android, and lottie-react-native. Segment and progress control concepts match the web API, though renderers differ slightly so testing on each target is recommended.