Objective Evaluation
GSAP vs Lottie: Code-Driven Animation or a Playback File?
GSAP animates elements you already have in code. Lottie plays a vector animation exported from After Effects. Where each wins, and why teams often ship both.
Updated November 2026
The fundamental architectural difference
GSAP and Lottie solve different problems. GSAP is a JavaScript animation engine: you animate elements that already exist in your page, and you decide everything — timing, scroll, drag, sequencing. Lottie is a file format: a motion designer builds the animation in After Effects, exports JSON, and a player renders it exactly as drawn. Use Lottie when a designer owns the artwork and it should look identical everywhere; use GSAP when the motion has to react to the page. Both are free — GSAP became free for everyone after Webflow acquired it, and the Lottie format and its players are open source.
Side-by-side comparison
Feature & Capability Breakdown
| Dimension | GSAP | Lottie | Advantage |
|---|---|---|---|
| What it is | A JavaScript animation engine | An open JSON format for vector animation | Tie |
| Who authors the motion | A developer, in code | A motion designer, usually in After Effects | Tie |
| Where the animation lives | In your JavaScript, acting on DOM, SVG or canvas elements | In a JSON file exported from the design tool | Tie |
| Reacts to state and input | Yes — any property, any trigger, full control | Playback only; interactivity is written around the player | GSAP |
| Timelines and sequencing | Nested timelines, labels, seek, reverse, timeScale | One timeline, as drawn | GSAP |
| Scroll-driven scenes | ScrollTrigger and Observer are included | Not in the format; scroll logic lives in your code | GSAP |
| Looks identical across platforms | Only as consistent as your CSS | The file renders the same on web, iOS and Android | Lottie |
| Designer handoff | The designer hands over specs or a video | The designer hands over the animation itself | Lottie |
| Cost | Free for everyone, plugins included | Format and players are open; LottieFiles plans run from $19.99/user/month billed annually | Tie |
When to choose Lottie
- A motion designer owns the animation and it has to look the same on every platform.
- The artwork is detailed vector illustration — characters, illustrations, branded loaders.
- The animation is a fixed performance: it plays, it loops, it is done.
- You are shipping to iOS and Android as well as the web, from one file.
When to choose GSAP
- The motion responds to the page: scroll position, pointer, drag, hover, viewport.
- You need sequences the designer did not draw: a product tour, a scroll-scrubbed scene.
- The animation is part of a component whose state changes — open, selected, loading, error.
- You want to animate existing layout and typography rather than import artwork.
We make ExodeUI, a third option: the artwork, the states, the logic and the physics live in one open .exode file that a runtime plays in React, Vue, Flutter, SwiftUI and native apps. It suits product UI rather than illustration, and it does not replace a Lottie player for artwork a designer drew in After Effects. How ExodeUI differs
Direct Answers