# Lottie

> A small file format for vector animation. Apps and sites play it live, sharp at any size.

**Field:** Design  
**Category:** Motion & Video  
**Also known as:** Lottie Animation, Lottie File, Bodymovin

## Think of it like

It is like sheet music for a cartoon. The file tells the player what to draw, so it stays small.

## Definition

Lottie is a file format and a set of players for vector animation. A designer makes the animation, often in After Effects, and exports it as a small JSON file. Apps and websites then play that file and draw it live. It stays sharp at any size and is much smaller than a video. Airbnb shared the players as free, open source code in 2017.

## Example

A food app shows a Lottie of a bike riding along while your order is on its way. The file is only 30 KB.

## Example code

```javascript
lottie.loadAnimation({
  container: document.getElementById("hero"),
  renderer: "svg",
  loop: true,
  path: "/animations/wave.json",
});
```

The page loads the file and plays it on a loop in the hero box.

## Why it matters

Designers can hand finished motion to coders as one file. Nobody has to rebuild it in code.

## Common mistake

Using effects the players cannot draw. Some After Effects features do not export, so test early.

## Three principles

- **Vector, not video.** Sharp at any size.
- **A small JSON file.** Much lighter than video.
- **Test the export.** Not every effect survives.

## Related terms

- [Adobe After Effects](https://learn.benibix.com/term/design/after-effects)
- [Scalable Vector Graphics (SVG)](https://learn.benibix.com/term/design/scalable-vector-graphics)
- [CSS Animation](https://learn.benibix.com/term/design/css-animation)
- [Motion Design](https://learn.benibix.com/term/design/motion-design)
- [JavaScript Object Notation (JSON)](https://learn.benibix.com/term/development/json)
- [Rive](https://learn.benibix.com/term/design/rive)
- [Jitter (Motion Design Tool)](https://learn.benibix.com/term/design/jitter)

## Told apart from

- [Rive vs Lottie](https://learn.benibix.com/compare/rive-vs-lottie): People think Rive and Lottie are two names for the same kind of file, and they are not. A Lottie file is an animation made in another app and played back the same way each time. Rive has its own editor, and its files can react. A state machine inside the file changes the move when someone taps, hovers or sends new data. Pick Lottie for a set piece that plays, and Rive for art that answers the user.

![A timeline with two diamond keyframes, one at frame 0 and one at frame 24. Above it, a ball travels along a curved path from the first spot to the second. Faded copies of the ball between them are the frames the computer fills in.](https://learn.benibix.com/diagrams/keyframes-tweening.svg)

---

Source: https://learn.benibix.com/term/design/lottie
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
