lottie-animations

Implement After Effects Lottie animations in web and React applications.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/sixscripts-ai/agent-arena-voice --skill lottie-animations-sixscripts-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lottie-animations
Source: https://github.com/sixscripts-ai/agent-arena-voice/tree/main/.claude/plugins/claudedesignskills/plugins/bundles/animation-components/skills/lottie-animations
Command: npx skills add https://github.com/sixscripts-ai/agent-arena-voice --skill lottie-animations-sixscripts-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Integrating designer-created After Effects animations into web and React applications requires choosing the right library, format, and rendering strategy while avoiding performance issues and memory leaks. ## Core Features & Use Cases - Library Integration: Implement animations with lottie-web, lottie-react, dotlottie-web, and dotlottie-react, including playback controls, event listeners, and scroll or hover interactivity. - Performance Optimization: Use dotLottie compression, Canvas rendering, Web Workers, lazy loading, and mobile-specific quality adjustments to hit 60 FPS targets. - Export Guidance: Follow After Effects Bodymovin export settings and supported-feature checklists to keep files under 100 KB. - Use Case: A designer hands you a 400 KB JSON animation for a landing page hero. Convert it to dotLottie, render it with DotLottieWorker, sync it to scroll position with GSAP ScrollTrigger, and lazy-load it below the fold. ## Quick Start Add a looping Lottie animation to my React page using the dotlottie-react component with play and pause controls.

Frequently Asked Questions about lottie-animations

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

FAQPage Schema
How do I add a Lottie animation to a React app?

Install @lottiefiles/dotlottie-react and render the DotLottieReact component with a src pointing to your .lottie or .json file, plus loop and autoplay props. Use dotLottieRefCallback to get the instance for programmatic play, pause, and seek controls.

What is the difference between lottie-web, lottie-react, and dotlottie-web?

lottie-web is the original library supporting SVG, Canvas, and HTML renderers. lottie-react wraps it for React with hooks and interactivity. dotlottie-web is the modern library using the compressed .lottie format and supports Web Worker rendering for better performance.

Should I use JSON or dotLottie format for animations?

Use dotLottie (.lottie) for production since ZIP compression reduces file size by up to 90% and supports multiple animations and themes in one file. JSON remains useful for development and when bundling animation data directly via imports.

Why is my Lottie animation stuttering or dropping frames?

Stuttering usually comes from SVG rendering of complex animations on the main thread. Switch to the Canvas renderer, use DotLottieWorker to offload rendering, lower devicePixelRatio on mobile, or simplify the After Effects composition.

Which After Effects features are not supported by Lottie export?

Layer effects like drop shadows and glows, 3D layers, cameras, adjustment layers, and most blending modes are unsupported. Convert effects to shape layers, enable Glyphs for text, and test exports on LottieFiles preview before shipping.

How do I prevent memory leaks with Lottie in React?

Call destroy() on the dotLottie instance in the useEffect cleanup function when the component unmounts. Also remove all registered event listeners in the cleanup to avoid duplicate handlers accumulating across renders.