lottie-rive

Integrate Lottie and Rive vector animations into React applications.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/andersoncollab/design-agent --skill lottie-rive
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lottie-rive
Source: https://github.com/andersoncollab/design-agent/tree/main/skills/lottie-rive
Command: npx skills add https://github.com/andersoncollab/design-agent --skill lottie-rive

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Lottie and Rive reduce the cost of shipping rich vector animations by helping you replace GIFs and video with browser-ready assets that stay crisp and performant.

Core Features & Use Cases

  • Lottie integration for After Effects exports: Use Bodymovin JSON to render playback-only animations for loading spinners, success/error states, and onboarding illustrations.
  • Rive integration for interactive state machines: Use .riv files to drive hover/click/scroll-reactive UI behaviors via React-controlled inputs and triggers.
  • Production performance guardrails: Apply lazy loading, explicit sizing to prevent layout shift, renderer selection (WebGL vs Canvas), and reduced-motion fallbacks.

Quick Start

Ask the skill to generate a React component that plays a Lottie loading animation above the fold, lazily loads the animation below the fold, and uses a reduced-motion fallback.

Frequently Asked Questions about lottie-rive

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

FAQPage Schema
How do I integrate Lottie and Rive animations into a React application?

To integrate Lottie and Rive animations into React, use React player components to render Bodymovin JSON and .riv files. This setup handles playback-only animations and interactive state machines driven by hover, click, or scroll inputs.

What is the best way to lazy load vector animations below the fold?

The best way to lazy load vector animations is using IntersectionObserver to defer loading off-screen assets. This approach applies production performance guardrails by preventing layout shift with explicit sizing and reducing initial bundle payload.

How do Rive state machines handle interactive UI behaviors in React?

Rive state machines handle interactive UI behaviors by wiring React-controlled inputs and triggers to .riv files. This allows vector animations to react dynamically to user events like hover, click, and scroll interactions.

Can I replace GIFs and video with Lottie or Rive for better performance?

You can replace GIFs and video with Lottie or Rive to achieve crisp, performant browser rendering. These vector animation formats use WebGL or Canvas renderers to deliver smaller file sizes and higher visual quality.

Does React vector animation support reduced-motion accessibility fallbacks?

Vector animation implementations support reduced-motion accessibility fallbacks by providing alternative static assets or disabling playback. This ensures compliance with user accessibility preferences while maintaining core UI functionality.

Why should I choose Rive over Lottie for interactive state machine animations?

Rive excels at interactive state machine animations by supporting real-time React inputs and triggers for hover and scroll events. Lottie primarily handles playback-only After Effects exports for simpler loading spinners and onboarding illustrations.