Motion GraphicsOpen source codeairbnb/lottie-web

lottie-web: Open Source AI Repository & Self-Hosting Guide

Airbnb open-source JavaScript player rendering lightweight After Effects vector animations exported via Bodymovin as scalable SVG, Canvas, or HTML.

GitHub Stars
32,787 stars
Repository License
MIT
Last Push (UTC)
Sep 1, 2025
Check the repo's license. Model weights may have a different license.
git clone https://github.com/airbnb/lottie-web.git
View on GitHub
Installnpm install lottie-web

lottie-web: Architecture & Practical Workflow

Instead of heavy GIFs or MP4 loops, lottie-web parses tiny JSON vector keyframes in browser DOM/Canvas engines—delivering resolution-independent micro-interactions, playback scrub hooks, and reduced-motion support across React and vanilla web apps.

Recommended End-to-End Pipeline

Design vector UI icons in After Effects or Rive/Haiku, export compact Bodymovin JSON, and control hover/scroll animation progress dynamically with `lottie.loadAnimation()`.

Runtime Target
JavaScript library (GitHub)
Primary Users
Web developers, UI designers
Code License
MIT
Focus Topics
open-source, github, lottie, web, self-hosted

Quick Setup & Installation Steps

Platform target: JavaScript library (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/airbnb/lottie-web.git && cd lottie-web`.
  2. 2Review the MIT license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `npm install lottie-web` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Design vector UI icons in After Effects or Rive/Haiku, export compact Bodymovin JSON, and control hover/scroll animation progress dynamically with `lottie.loadAnimation()`.)

Hardware & VRAM Notes

Runs on standard developer workstations without specialized hardware unless loading large local weights.

CPU & Memory

Modern multi-core CPU with 8 GB–16 GB RAM for orchestration, CLI agents, OCR/document parsing, or UI workflows (32 GB+ if co-hosting large local LLMs).

GPU / VRAM

Optional unless running local neural weights; pairs cleanly with local inference servers (Ollama / llama.cpp) or remote endpoints.

Runtime Target

JavaScript library (GitHub)

Strengths & Best For

  • Vector animations on the web
  • Small file sizes
  • Works with exported Lottie files
  • Best suited for: Web developers, UI designers

Limitations & Caveats

  • Needs an export workflow from a design tool
  • Complex effects may not be supported
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Motion Graphics)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted lottie-web vs. Hosted Alternatives (Glaxnimate & Rive)
Factorlottie-web (Self-Hosted)GlaxnimateRive
Execution & PrivacyRuns locally via JavaScript library (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaMIT code; bound only by local CPU/GPU hardware.Open Source; subject to vendor free-tier limits or paid plans.Freemium; subject to vendor free-tier limits or paid plans.
Primary FitVector animations on the web; Small file sizesFree and open-source 2D vector animation & motion graphics editor for Lottie and SVG.Interactive real-time vector motion graphics and state machines for web, apps, and games.
Key Trade-offNeeds an export workflow from a design toolRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for lottie-web workflows.

Sci-Fi Holographic HUD Interface LoopMotion Graphics · 3D Hologram VFX
Open in Studio
Iridescent Liquid Chrome WavesMotion Graphics · Abstract 3D Fluid Dynamics
Open in Studio
Retro-Futuristic Synthwave Grid CityMotion Graphics · 80s Outrun Synthwave Loop
Open in Studio

Compare Alternatives

Compare Engine →

Compare lottie-web side-by-side on setup ease, privacy, and role scorecards.

More Open Source Motion Graphics Repositories

Frequently Asked Questions

What does lottie-web do and how does it work?

lottie-web (airbnb/lottie-web) is an open-source motion graphics project with 32,787 stars on GitHub. Airbnb open-source JavaScript player rendering lightweight After Effects vector animations exported via Bodymovin as scalable SVG, Canvas, or HTML. Instead of heavy GIFs or MP4 loops, lottie-web parses tiny JSON vector keyframes in browser DOM/Canvas engines—delivering resolution-independent micro-interactions, playback scrub hooks, and reduced-motion support across React and vanilla web apps.

Is lottie-web free to self-host and use commercially?

lottie-web provides open source code licensed under MIT. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does lottie-web require?

lottie-web targets JavaScript library (GitHub). Typical installation runs via `npm install lottie-web`. Needs an export workflow from a design tool

How does self-hosting lottie-web compare to hosted tools like Glaxnimate?

Self-hosting lottie-web gives you full local data control, zero per-usage vendor fees, and customizable JavaScript library (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, Glaxnimate (Open Source) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is lottie-web actively maintained and what workflow fits it best?

Repository metadata records 32,787 stars on GitHub with the latest recorded push on Sep 1, 2025. Design vector UI icons in After Effects or Rive/Haiku, export compact Bodymovin JSON, and control hover/scroll animation progress dynamically with `lottie.loadAnimation()`.