🎞️Lottie
Also known as Lottie Animation, Lottie File, Bodymovin
A small file format for vector animation. Apps and sites play it live, sharp at any size.
Think of it like
It is like sheet music for a cartoon. The file tells the player what to draw, so it stays small.
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.
Why it matters
Designers can hand finished motion to coders as one file. Nobody has to rebuild it in code.
Definition
Example code
javascript
lottie.loadAnimation({
container: document.getElementById("hero"),
renderer: "svg",
loop: true,
path: "/animations/wave.json",
});Common mistake
Key takeaways
- 1Vector, not video. Sharp at any size.
- 2A small JSON file. Much lighter than video.
- 3Test the export. Not every effect survives.