npx skills add ...
npx skills add freshtechbro/claudedesignskills --skill 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.
npx skills add freshtechbro/claudedesignskills --skill lottie-animations
Lottie is a library for rendering After Effects animations in real-time on web, iOS, Android, and React Native. Created by Airbnb, it allows designers to ship animations as easily as shipping static assets. Animations are exported from After Effects as JSON files using the Bodymovin plugin, then rendered natively with minimal performance overhead.
When to use Lottie:
Key advantages:
1. JSON Lottie (.json)
2. dotLottie (.lottie)
lottie-web (original library):
@lottiefiles/dotlottie-web (modern, recommended):
@lottiefiles/dotlottie-react (React integration):
lottie-react (alternative React wrapper):
1. LottieFiles (lottie.host)
2. Local JSON/dotLottie files
3. After Effects export
1. Export Settings in After Effects:
2. Compression:
3. Lazy Loading:
1. Renderer Selection:
2. Web Workers:
3. Mobile Optimization:
Problem: Not destroying Lottie instances when components unmount.
Solution:
Problem: Event listeners not removed, causing multiple handlers.
Solution:
Problem: Exported JSON files are 500KB+ for simple animations.
Solutions:
Problem: Animation stutters or drops frames.
Solutions:
DotLottieWorker for web worker renderingProblem: Animation doesn't load due to CORS or incorrect paths.
Solution:
Problem: Some After Effects features don't export to Lottie.
Unsupported features:
Solution:
This skill includes:
generate_lottie_component.py - Generate React/Vue/Svelte Lottie component boilerplateoptimize_lottie.py - Optimize Lottie JSON file sizeapi_reference.md - Complete API documentation for lottie-web, lottie-react, and dotlottie-webafter_effects_export.md - Guide for exporting animations from After Effectsperformance_guide.md - Detailed performance optimization strategiesstarter_lottie/ - Complete React + Vite starter template with Lottie examplesexamples/ - Real-world Lottie animation patterns and use cases