Comparisons

After Effects to web animation: Lottie vs Capture Motion

After Effects, Bodymovin and Lottie suit hand-crafted vector animation. For UI motion already in a browser, capture it, tweak it in Figma and ship it as code.

26 November 2026 · 6 min read

For years the standard answer to "how do I get After Effects animation onto the web" has been the same: animate in After Effects, export with the Bodymovin plugin, and play the result with a Lottie player. It is a good pipeline, and many of the best animated illustrations on the web came through it.

But a lot of designers end up on that path for motion it was never meant to carry: a button press, a toggle, a drawer, a tab indicator. This post compares the After Effects to Lottie route with a different one for UI motion that already runs in a browser, and explains when each makes sense.

How the After Effects to Lottie path works

In broad terms:

  1. A motion designer builds the animation in After Effects, usually from vector shape layers.
  2. The Bodymovin extension exports the composition as a JSON file that describes the layers, shapes and keyframes.
  3. A Lottie player on the web (or in an iOS or Android app) reads that JSON and draws the animation, usually to SVG or canvas.

The strength is clear: the animator gets the full control of a motion design tool, and the result plays at any size, stays sharp, and is usually much smaller than a video. For character, illustration and brand moments, that is hard to beat.

Where it gets heavy for UI

The same pipeline is less comfortable for interface motion. A few reasons, all of them general to the approach rather than to any one tool:

  • It needs After Effects skills. Many product designers do not use After Effects every day. Learning it to animate a menu is a big detour.
  • UI states are interactive. A toggle has on, off, hover, pressed and disabled. A Lottie file is a timeline you play, so developers end up scrubbing to segments and wiring states around it.
  • The real component lives in code. A button is HTML and CSS with real text, theming and accessibility. Replacing parts of it with a drawn animation means the text and colours no longer come from the same place as the rest of the product.
  • Not every After Effects feature carries over. Some effects and expressions do not have a Lottie equivalent, so animators learn which parts of the tool are safe to use.
  • Changes go back through the pipeline. A tweak to the timing means opening the project in After Effects, exporting again and replacing the file.

None of this makes Lottie a bad choice. It makes it a choice for a particular job. We go into the code side of this in CSS animation vs Lottie.

A different route for UI motion

Much of the UI motion designers want to work with already exists, running in a browser: in your own product, in a competitor's checkout, in a component library you admire. For that motion you do not need to start from a blank composition. You can capture it.

Capture Motion is a free Chrome extension and Figma plugin from Crafttor. The route looks like this:

  1. Capture. Open the extension on a page, pick the element and trigger the animation. It records the animation while it plays and reads the keyframes, durations, delays and easing of every animated property. It handles CSS transitions and keyframes, the Web Animations API, GSAP and Lottie, and captures hover effects by setting a real hover state only during the capture.
  2. Tweak in Figma. Copy the JSON and paste it into the Capture Motion Figma plugin, which rebuilds it as an editable Figma Motion timeline. Change the shapes, the colours, the timing, inside the tool you already use.
  3. Ship as code. The same capture gives you CSS, React and GSAP code tabs, a self-contained HTML and CSS file, and Copy for LLM, which copies the JSON with a ready instruction for Claude or ChatGPT.

The result is UI motion that stays UI: real elements, real text, styles a developer can read and change. For more on the Figma step, see CSS animation to Figma Motion.

Capture Motion also records Lottie

This is not a choice between "Lottie people" and "CSS people". When the source animation is a Lottie player, the extension records it as it plays, and a Lottie export appears alongside the code tabs. That is useful when you want to study how an illustration is timed, or when you need the Lottie version of an animation your own team already shipped. The steps are in how to copy a Lottie animation.

One rule applies whatever you capture: respect the licence. Illustrations, icons and Lottie files on other sites belong to the people who made them. Capturing one to learn its timing is reasonable; shipping it in your own product needs the owner's permission or a licence that allows it. Use captures of other people's work as reference, and use your own or properly licensed artwork in production.

Side by side

Job After Effects, Bodymovin and Lottie Capture Motion
Where the motion starts A new composition you animate by hand An animation already running in a browser, or a ready gallery card
Illustrative, hand-crafted vector animation Built for this Records it if it already plays as Lottie; not a tool for drawing new illustration
Interactive UI states (hover, toggle, open and close) Possible, with segments and wiring in code Captured from the real component, exported as CSS, React or GSAP
Skills needed After Effects Chrome and Figma
Where you edit After Effects, then export again Figma Motion timeline, or the exported code
What developers receive A JSON file and a player Code tabs, an HTML file, JSON, and a prompt for an AI assistant
Text and colours Part of the animation file Stay as real elements and styles in the exported code

Three examples

An onboarding illustration

A character waves, a phone slides into its hand, confetti falls. This is After Effects and Lottie territory. The motion is invented, drawn and tuned frame by frame, and the result is a self-contained piece that plays the same everywhere. Capture Motion has nothing to add except, later, recording the shipped Lottie if you want its timing for reference.

A segmented control

The selected pill slides between options, the label colour changes, the old label fades. Building this in After Effects means drawing every state and wiring segments in code. Capturing a similar control you like, adjusting the timing in Figma Motion and exporting CSS gives you something that uses real text and your real theme, and that a developer can change in one line.

A loading animation your team already shipped as Lottie

The original After Effects file is lost, but the animation still plays on your site. Capture it as it plays, check the timing in the popup, and you have both the Lottie export and a Figma timeline to work from.

How to choose

  • Choose After Effects and Lottie for illustration, character, brand moments and anything you are inventing from scratch with a motion designer's full control.
  • Choose Capture Motion when the motion is UI, already exists in a browser, and needs to end up as editable code and an editable Figma timeline.
  • Use both when a product has both kinds of motion, which most do. Let the illustrations stay in Lottie and keep the interface in code, with the same captured numbers in design and development.

The point is to stop sending every animation through the heaviest pipeline. Hand-crafted art earns the After Effects round trip. A drawer sliding in does not.

Try it now. Install the free Capture Motion Chrome extension, capture one UI animation you have been meaning to rebuild, and open it in the Figma plugin. Or browse ready components in the gallery first; capture and preview need no account.

Questions

Should I still use After Effects and Lottie for web animation?

Yes, for illustrative work: animated icons with character, onboarding illustrations, empty states and brand moments. For UI states like buttons, toggles, menus and drawers, CSS or a small script is usually lighter and easier to change.

Can Capture Motion record a Lottie animation?

Yes. The Capture Motion Chrome extension records Lottie as it plays, and when the source is Lottie it offers a Lottie export alongside the CSS, React and GSAP tabs.

Do I need After Effects skills to use Capture Motion?

No. You pick an element in Chrome, trigger the animation and copy the result. Editing happens in Figma Motion or in the exported code.

Can I reuse a Lottie file I captured from another site?

Only if its licence allows it. Capturing is fine for study and timing reference, but the artwork belongs to its owner, so check the terms before you ship it in your own product.