lottie-animation

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

52|3|Updated Aug 20, 2026
One-click install
npx skills add https://github.com/Wayn-Git/Amethyst --skill lottie-animation-wayn-git
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: lottie-animation
Source: https://github.com/Wayn-Git/Amethyst/tree/main/agents/skills/lottie-animation
Command: npx skills add https://github.com/Wayn-Git/Amethyst --skill lottie-animation-wayn-git

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 web and mobile products requires choosing the right runtime, controlling playback and segments, handling scroll or interaction-driven frames, and recoloring without re-exporting — all of which involve scattered APIs and export pitfalls. ## Core Features & Use Cases - dotLottie and lottie-web integration: Set up @lottiefiles/dotlottie-web or the React wrapper with canvas rendering, autoplay, loop, and lifecycle events. - Playback and interactivity control: Drive segments, frames, speed, bounce modes, scroll-driven scrubbing, and declarative hover/click/cursor behaviors via lottie-interactivity. - Runtime theming and AE export: Switch embedded dotLottie themes or patch colors manually, and follow the Bodymovin export checklist covering unsupported AE features like expressions and effects. - Use Case: A designer hands you an AE animation for an onboarding flow. Use this Skill to export it as a .lottie file, embed it in a React page with the dotLottie player, and scrub it to scroll position across a scrollytelling section. ## Quick Start Use the lottie-animation skill to embed my hero.lottie file in a React component with looping autoplay and a dark theme variant.

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 in React?▼

Install @lottiefiles/dotlottie-react and render the DotLottieReact component with src, loop, and autoplay props. Capture the player instance via dotLottieRefCallback to call play, pause, setSpeed, or setSegment imperatively.

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?▼

Create the player with autoplay disabled, read totalFrames after the load event, and map scroll progress from 0 to 1 onto frames using setFrame on each scroll event. Alternatively use @lottiefiles/lottie-interactivity with scroll mode for declarative frame mapping.

Can I change Lottie animation colors at runtime?▼

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

Which After Effects features are not supported by Lottie?▼

Expressions, most effects like blurs and glows, 3D layers and cameras, time remapping, adjustment layers, layer styles, and audio are unsupported or inconsistent. Bake expressions to keyframes and recreate looks with shape layers, gradients, and mattes.

Does the same Lottie file work on iOS and Android?▼

Yes, the same .lottie or .json plays on lottie-ios, lottie-android, and lottie-react-native with matching segment and progress concepts. Always verify the exported file on each target runtime since renderers differ slightly.