Industry

Why AI coding tools need captured motion to rebuild an interaction

Language models write UI code quickly but guess at animation. We measured how much better Claude rebuilds a component when the prompt carries captured timing and the card's own markup.

22 November 2026 · 5 min read

AI coding tools have changed how interfaces get built. A founder can describe a dashboard and have a working page in minutes. A developer can ask for a component and get one that compiles. Layout, forms and data plumbing come out remarkably well.

Motion is the part that still comes out wrong. Not broken, just generic. Ask for "a springy floating action button that fans out its options" and the model will give you something that runs, with a 300 ms ease-in-out on every element, no stagger worth noticing and a spring that is really a fade.

This is not a flaw in any one model. It is a gap in what we give them.

Why models guess at animation

A language model writes code from what is in the prompt plus what it has learned. For layout, the words in a prompt map closely onto code: "a two-column grid with a sidebar" is nearly a specification. For motion, the words do not map at all. "Snappy", "smooth" and "bouncy" could each mean a hundred different curves.

So the model fills the gap with the most common answer. That is the average of every animation it has read, which is why so much AI-built UI moves the same way.

The fix is to stop describing motion and start handing it over.

What a captured prompt gives the model

On any card in the Capture Motion gallery, View, then Copy > LLM prompt, produces a prompt with three parts:

  • An instruction telling the model what to build and to use the given values.
  • The capture JSON: every animated property with its keyframes, durations, delays and easing.
  • The card's own markup as a visual reference, so the model can see the structure and styling.

The rule inside the prompt is simple: take the look from the reference and the motion from the JSON. If you customized the card first, your colour, text, speed and background are already in it.

For a capture from a live site, Copy for LLM in the Chrome extension gives the model the motion data. It has no site markup to go on, so describe the look in a follow-up if it matters.

We measured the difference

Claims about AI output are cheap, so we built a way to check. Our test bot photographs each gallery card at rest and after Play, then does the same for the copy a model produces from the prompt, on the same stage. It scores the copy out of 100: half for how it looks, a fifth for content (the text, gradients, shadows, blur, images and rounded corners the card has), and three tenths for how it moves. The method is in how we measure motion fidelity.

We ran eight of our live gallery cards through Claude at three stages, each reply from a fresh session with nothing but the prompt:

What the prompt carriedAverage score
Capture JSON only60
JSON plus the card's reference markup72
Reference markup plus a JSON rebuilt from the card itself88

The best single cards reached the high 90s. A newer card, Tunnel Carousel (an image carousel seen from inside a ring of photos), scored 95 from the prompt alone, with full marks for content.

Two things stand out. First, the motion data alone was not enough: modern cards lean on gradients, glass blur and photos, and a model needs to see those. Second, once the model had both, it did not need coaching. The first reply was a faithful starting point.

What the numbers do not say

We want to be straight about the noise. The same prompt sent to fresh sessions can land very differently: one card scored 85, then 49, then 84 on near-identical prompts. The 49 was a reply that shrank the card and drew it off-frame. So read any single reply as one sample, and judge a prompt by the trend across several.

Some interactions are also harder than others. Our rebuilt Radial Fan card, a floating action button that springs five actions out along an arc, scored 70 from a Claude reply: full marks for content, but the look score was pulled down partly by how the reply was framed on the test stage. Copies of drag-driven components are harder to score, because our bot presses Play, hovers and clicks, but does not drag.

How to get the most out of it

  1. Paste the whole prompt as the first message of a new chat. Do not trim it.
  2. Add one line about your stack, such as "Build this as a React component with Tailwind".
  3. Get a faithful copy first, then change it. Asking for a copy and a redesign in one go makes timings drift.
  4. Say "keep the timings as given" in follow-ups. Models like to round 520 ms to 500 and swap custom curves for keywords.
  5. Check it against the card. Ask the model to list each animated element with its property, duration, delay and easing; it doubles as a timing check.

Prompt AI with exact motion specs has a full worked example.

What this means for AI-built products

As more interfaces are generated rather than hand-written, the inputs to those generators become the real design work. A team that hands its AI tool real motion data will ship products that feel considered. A team that types adjectives will ship the same 300 ms fade as everyone else.

Captured motion is how the feel of an interface survives the trip through a model. It also makes AI output easier to review, because there is a source of truth to compare against.

Try it now. Pick a card at capturemotion.dev, customize it, copy its LLM prompt and paste it into Claude or ChatGPT. Copying the prompt is unlimited and needs no account. Then play the result next to the card.

Questions

Which models does the LLM prompt work with?

It is written for Claude and ChatGPT. It is plain text, so it pastes into any chat model, but results depend on the model.

Why did scores improve so much when the card's markup was added?

The capture JSON describes the motion precisely, but the look of a modern card (gradients, blur, photos, text) is easier for a model to follow from real markup. Looks from the reference, motion from the JSON, turned out to be the combination that works.

Is one good result enough to trust a prompt?

No. The same prompt can produce a very good reply one time and a weaker one the next. Check the motion against the card, and judge a prompt over several replies.