---
name: "lottie-web-vector-animations"
description: "Render lightweight, scalable After Effects vector animations on the web with Lottie."
metadata:
  author: "Airbnb"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "play lottie animation react"
  - "trigger lottie on hover"
  - "scrub lottie on scroll"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Lottie-Web JSON Vector Animation Engine

Embeds Bodymovin JSON animation files using lottie-web / @lottiefiles/react-lottie-player: canvas/SVG renderers, frame markers, scroll scrubbing, and interactive hover triggers.

## When to Invoke
Invoke this skill whenever you need to:
- play lottie animation react
- trigger lottie on hover
- scrub lottie on scroll

## Execution SOP & Rules
1. Prefer renderer: 'svg' for crisp vector shapes; use renderer: 'canvas' for complex particle scenes.
2. Pause animations when off-screen using IntersectionObserver to conserve mobile CPU cycles.
3. Trigger specific animation segments using animationInstance.playSegments([startFrame, endFrame], true).
4. Destroy animation instances with animationInstance.destroy() during component teardown.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
