LottieFiles

OpenAI Codex Tutorial: Automatically Create and Edit Lottie Animations with AI

Hongzhao·Aug 7, 2026·8 mins 47 secs

Create Lottie animations with OpenAI Codex—without writing code or using After Effects.

In this step-by-step tutorial, I’ll show you how to use Codex, lottie-web, and the Lottie Creator MCP to build, recreate, edit, and export smooth Lottie animations using natural-language prompts.

You’ll learn how to:

Set up lottie-web with Codex
Create a looping success animation from scratch
Export a Lottie JSON file and HTML preview
Recreate an animation from a reference video
Replace stars with hearts while preserving the original motion
Swap an existing logo with a custom SVG logo
Turn a static Figma navigation bar into an interactive web animation
Combine Lottie with HTML, CSS, and JavaScript
Connect Codex to the Lottie Creator MCP
Edit existing LottieFiles animations using natural language
Change colors, timing, shapes, layers, easing, and other animation properties

This workflow is useful for animated icons, loaders, progress indicators, logo reveals, onboarding graphics, UI microinteractions, website animations, and mobile app animations.

00:00 — Create Lottie Animations with Codex—No Coding or After Effects
00:15 — Install Lottie Web in Codex
00:30 — Case 1: Build a Success Animation from Scratch
01:18 — Case 2: Recreate and Customize an Existing Animation
02:24 — Case 3: Recreate a Logo Animation
03:18 — Case 4: Build an Interactive Animated Navbar
04:23 — Case 5: Connect Codex to Lottie Creator Through MCP
04:47 — Set Up and Enable the Lottie Creator MCP
05:17 — Generate an Animation from an SVG with Codex
05:41 — Edit Pre-Made Lottie Animations
06:00 — Make Automatic Animation Edits with Codex
06:28 — What Codex Can Do with the Lottie Creator MCP
07:57 — Manage Files and Projects with the LottieFiles MCP
08:09 — Workflow Tips and Final Thoughts

#AIAnimation #Lottie #Codex #NoCode #AITools #WebDesign #UIAnimation #AICoding #MotionDesign #lottieanimation