A Lottie file is a lightweight, vector-based animation saved as JSON (or the compressed .lottie format). It plays in websites and apps with a small player, stays sharp at any size and is far smaller than a video or GIF. Lottie files are usually exported from After Effects.
Lottie is an open-source animation format released by Airbnb in 2017. It lets designers export vector animations that developers can drop into websites and apps without turning them into heavy videos.
How a Lottie animation works
A Lottie file does not contain video frames. It contains a description of the animation: the vector shapes, their colors and how they move over time. A small player on the website or in the app reads that description and draws the animation live. That is why a Lottie stays sharp at any size and is usually much smaller than the same animation as a video or GIF.
Lottie vs GIF vs MP4
| Lottie | GIF | MP4 | |
|---|---|---|---|
| Type | Vector | Raster | Video |
| File size | Very small | Large | Medium |
| Scales without blur | Yes | No | No |
| Transparency | Yes | Limited | Not by default |
| Interactive | Yes (play on hover, scroll, click) | No | Limited |
| Best for | Logos, icons, UI animations | Quick sharing | Complex scenes, footage |
JSON vs .lottie
The original Lottie format is a .json file that describes shapes and keyframes. The newer .lottie (dotLottie) format compresses that JSON and can bundle several animations and assets in one smaller file.
How Lottie files are made
- A motion designer animates vector artwork in Adobe After Effects.
- The animation is exported with the Bodymovin plugin or the LottieFiles plugin.
- The file is tested in a Lottie preview to check that every effect is supported.
Not every After Effects effect works in Lottie. Shape layers, masks, trims and transforms work well; heavy effects and raster footage do not.
Where Lottie animations work well
- Animated logos in a website header, intro or loading screen.
- Icons and micro-interactions, such as a menu icon that changes on click or a checkmark after a form is sent.
- Illustrations that come to life as the visitor scrolls.
- App onboarding screens and empty states.
For long scenes with camera movement, real footage or complex 3D, a video is still the better format.
How to use Lottie on a website
- Webflow supports Lottie natively: upload a Lottie JSON or dotLottie file to the Assets panel, add it with the Lottie animation element and control it with interactions.
- WordPress uses a Lottie block or plugin, or a small embed script.
- Apps use official Lottie libraries for iOS, Android and React Native.
Lottie in Webflow, in a bit more detail
According to Webflow's documentation, Lottie animations play as the page loads by default. The element settings let you choose whether the animation renders as SVG or canvas, and the Interactions panel has Lottie-specific actions, so you can play an animation on scroll, on hover or on click, play only part of it or reverse it. This makes Webflow one of the easiest places to use Lottie without writing code.
Performance and accessibility
Lottie files are light, but not free. A very complex animation with many layers can still use a lot of processing power on older phones, so keep animations simple and test them on a real mobile device.
Think about visitors who prefer less motion too. The W3C accessibility guidelines ask that moving content which starts automatically and lasts more than five seconds can be paused, stopped or hidden. Short animations, loops that stop, and respecting the reduced-motion setting in the visitor's operating system all help.
From the studio: for logo animations we deliver Lottie for the website, plus MP4 and GIF for social media and presentations, so every channel gets the right format.
Related guides
We create logo animations delivered as Lottie, MP4 and GIF files.
FAQ
What is a Lottie file used for?
For lightweight vector animations on websites and in apps, such as animated logos, icons, loaders and illustrations.
How do I open a Lottie file?
Use a Lottie preview tool or player, or upload it to a platform like Webflow that plays Lottie natively.
Is Lottie better than GIF?
For websites and apps, usually yes: Lottie files are smaller, sharper and can be interactive.
Can I convert a Lottie file to MP4 or GIF?
Yes, Lottie tools can render the animation to video or GIF for social media.
Lottie by Airbnb; LottieFiles; Webflow Help: Embed Lottie animations; W3C: Understanding Pause, Stop, Hide. Based on our client projects.

Founder of SkyDesigner. Fiverr Pro Vetted designer, selling on Fiverr since 2014 with 24,500+ reviews.




