Skip to content

Specifying Motion for Developers: How to Hand Off Animation

Utsab Roy | October 20, 2026 | Business Development

The Bottom Line: A Figma prototype shows a developer what you want; it does not tell them how to build it. For every animated element, write down the trigger, the property that changes, the duration, the easing, any delay or stagger, and the reduced-motion fallback. Send a Lottie, Rive or reference video only for the motion those six fields cannot describe. The developer then picks the lightest technique that reproduces the intent, and you sign off on the interpretation before code is written.

What should a motion spec for developers include?

For every animated element, a motion spec states the trigger, the property that changes, the duration, the easing, the delay or stagger, and the reduced-motion fallback. For anything that cannot be described in those terms, it includes one reference video or prototype.

That is the whole contract. The rest of this post is about filling those fields in a way a developer can act on without a call.

Motion is the part of a design most often rebuilt from guesswork. A layout can be measured off the Figma file to the pixel. A hover state cannot. If the spec says “fade in on scroll”, the developer chooses the distance, the timing and the curve, and you then review a build that feels wrong for reasons neither side can name. Writing the six fields moves those decisions back to the person who made the design.

The spec does not need to say how the motion is built. Whether an element moves with a CSS transition, a GSAP timeline or an SVG animation is the developer’s call, made on cost, and the companion post on how each technique is budgeted covers that side. Your job is to be precise about what the user sees.

Why a Figma prototype is not a spec

A Figma prototype is a good reference and a poor specification. It helps to be clear about what a developer can and cannot take from it.

What they get. Smart Animate interpolates matching layers between two frames. According to Figma’s documentation, it can animate scale, position, opacity, rotation and fills, including changes between solid colours, gradients and image fills. Each transition carries an adjustable duration and an easing setting, so a developer can open the prototype and read those two values for a single step.

What they do not get:

  • A timeline. A prototype transition is one move between two frames. A sequence in which a heading settles, then a line draws, then three cards stagger in is several transitions chained through intermediate frames, and the developer has to reconstruct the timing by stepping through them.
  • Scroll-linked behaviour. Motion that tracks scroll position, such as a parallax layer or a progress-driven mask, has no equivalent in prototype settings. It needs numbers: a start and end scroll offset and the value at each.
  • Custom curves. The easing presets travel with the prototype; a custom curve does not, unless you type its four cubic-bezier values into the spec.
  • A warning when the morph fails. Figma’s docs note that layers with drop or inner shadow effects, moves between different shapes, and overlay actions cannot be smart-animated and receive a default dissolve instead. The prototype will show a crossfade where you designed a morph, and nothing flags it.
  • A reduced-motion state. There is no prototype setting for what a user with reduced motion enabled should see.

Send the prototype. Send the fields with it.

The six fields every animated element needs

Write each one the way you would write a layout measurement: a value, not an adjective.

Trigger

Name the event that starts the motion: page load, scroll into view, hover, click, or scroll-linked. Scroll into view needs a threshold (“when 20% of the card is visible”) and whether it replays on every entry or runs once. Scroll-linked motion needs the scroll range it maps to.

Property

Say which property changes and between which values. Transform (translate, scale, rotate), opacity, colour, clip or mask, and SVG path are the usual set. “Card: translateY 24px to 0, opacity 0 to 1” is a spec. “Card slides up” is a request for the developer to design it.

Duration

Give milliseconds. For scale, Material Design’s motion guidance puts desktop transitions at 150 to 200 ms and flags anything over 400 ms as likely to feel slow, while IBM Carbon’s tokens run from 70 ms for a button to 700 ms for background dimming. If the same element behaves differently on mobile and desktop, give both values.

Easing

Name a curve or give the four numbers. MDN defines the CSS named curves: ease is cubic-bezier(0.25, 0.1, 0.25, 1), ease-in is cubic-bezier(0.42, 0, 1, 1), ease-out is cubic-bezier(0, 0, 0.58, 1), and ease-in-out is cubic-bezier(0.42, 0, 0.58, 1). Anything else is a cubic-bezier() with two control points whose x values fall between 0 and 1, which is what After Effects and Figma show you in the curve editor. The families on easings.net (Quad, Cubic, Expo, Back and so on) are fine as names if you also paste the bezier values.

Delay and stagger

State any pause before the motion starts and, for groups, the gap between siblings. “Stagger 80 ms, first five items, then the rest together” stops a twelve-card grid from taking a full second to appear.

Reduced-motion fallback

Describe what the element does when the user has asked for less motion. Usually that means opacity only, a shorter duration, or no animation at all. A later section covers why this field is yours to fill.

A complete line reads: “Card: on scroll into view, translateY 24px to 0 and opacity 0 to 1, 400 ms, ease-out, stagger 80 ms; reduced motion: opacity only, 200 ms.”

Motion tokens: decide durations and easings once

A site with forty animated elements should not have forty durations. Design-system teams solve this by naming a small set of values and reusing them everywhere, and the same discipline shrinks a motion spec to a handful of references.

IBM’s Carbon design system publishes six duration tokens: duration-fast-01 at 70 ms for micro-interactions such as buttons and toggles, duration-fast-02 at 110 ms for fades, duration-moderate-01 at 150 ms for small expansions and short movements, duration-moderate-02 at 240 ms for expansion and toasts, duration-slow-01 at 400 ms for large expansions and important notifications, and duration-slow-02 at 700 ms for background dimming. Its easing tokens are split into productive and expressive sets, each with a standard, entrance and exit curve; the productive entrance curve, for example, is cubic-bezier(0, 0, 0.38, 0.9).

Material Design’s original motion guidance takes the same approach with four curves: Standard cubic-bezier(0.4, 0.0, 0.2, 1), Deceleration cubic-bezier(0.0, 0.0, 0.2, 1) for elements entering, Acceleration cubic-bezier(0.4, 0.0, 1, 1) for elements leaving, and Sharp cubic-bezier(0.4, 0.0, 0.6, 1). Its durations separate entering elements at 225 ms from leaving elements at 195 ms.

You do not need to adopt either system. You need three or four durations and two or three easings of your own, named and listed once at the top of the spec. Each element line then reads “duration.medium, easing.enter”, and a change to the house feel is a change to one table rather than to forty lines.

When to send a file instead of a spec

Some motion cannot be reduced to six fields: an illustrated icon that draws itself, a brand mark with twenty keyframed layers, a character that reacts to the cursor. For these, send a file, and send the right kind.

After Effects to Lottie or dotLottie. Lottie is exported from After Effects as JSON describing the layers and keyframes. Per LottieFiles’ documentation, a plain Lottie that references image assets stores them as Base64 data inside the JSON, which significantly increases file size; dotLottie bundles the animation and its assets into a single ZIP-compressed file and can also carry theme files and state-machine definitions. Preview the export before sending it. If the preview does not match After Effects, the feature you used did not survive export, and the developer cannot recover it on their side.

Rive for state-driven animation. Rive’s documentation describes it as a place where designers, animators and developers build interactive experiences together, and its state machines “define the logic that controls interactive animations in a Rive file”. If the animation has states (idle, hover, pressed, loading, success) and the developer needs to drive them from page events, Rive is the format that carries that logic with the file.

A screen recording for anything sequenced. For a hero sequence or a page transition, a short recording of the After Effects comp is the reference. Send it as MP4 or WebM, not GIF; web.dev’s measured example puts one GIF at 3.7 MB against 551 KB as MP4 and 341 KB as WebM.

Expect the developer to rebuild simple Lottie files in CSS or SVG. A checkmark that draws itself or an arrow that nudges on hover is a few lines of code and lighter than a JSON file plus a player. This is normal, and it is not a comment on the animation. The spec fields still apply: the rebuilt version needs the duration and easing you authored.

MotionSend asWhat the developer needs from you
Hover and micro-interactionsSpec onlySix fields per state; duration and easing tokens
Reveal on scrollSpec plus prototypeThreshold, distance, stagger, replay rule; one Smart Animate step for the feel
Hero or brand animationReference video plus specMP4 or WebM of the comp, times of the main beats, a static fallback frame
Illustrated icon animationLottie or dotLottieTested export, trigger, and permission to rebuild in SVG if lighter
Interactive character or state-drivenRiveState names, inputs, and which page events drive each transition

One rule holds across every row. Motion decorates the page; it does not replace it. If a headline is drawn as an image or painted into a canvas so that it can animate, search engines and AI crawlers no longer read it as text, which is the concern the post on preparing a site for generative engine optimisation covers. Keep the copy as HTML and animate it in place.

Reduced motion is a design deliverable

WCAG Success Criterion 2.3.3 states that “motion animation triggered by interaction can be disabled, unless the animation is essential to the functionality or the information being conveyed”. The reason, per the W3C’s explanation of the criterion, is that motion can cause dizziness, nausea and headaches for people with vestibular disorders. MDN adds that scaling or panning large objects are typical triggers, and that browsers expose a prefers-reduced-motion media query which evaluates as true when the user has enabled the reduced-motion setting on their device.

The developer will wire up the query. What the developer cannot do is decide what your design looks like with the motion removed. A parallax hero with the parallax off may need a different crop. A staggered reveal with the stagger off may need a static layout that still reads. Those are design decisions, and if the spec leaves the field blank, the developer will either disable everything, which flattens the page, or leave everything on, which fails the criterion.

Fill the sixth field for every element. “Opacity only, 200 ms” or “no animation, show final state” is usually enough.

How we handle it at Pixll Dev

Most motion specs we receive map onto our in-house animation library: WebGL gradients for backgrounds, SVG SMIL for icon and path animation, and GSAP for timelines and scroll-linked sequences. A designer’s six fields become parameters on building blocks that have already shipped on other sites, rather than a fresh implementation each time. For agencies that bring us in as their engineering partner, this is where most of the motion work lands.

Before build, we send back a motion inventory: one line per animated element, with the six fields filled in as we read them from the spec, the prototype and any files. Where we intend to rebuild a Lottie in SVG or drop a stagger for reduced-motion users, the inventory says so. The designer corrects the interpretation on that document, rather than on a staging site after the code exists.

Frequently asked questions

Can developers use a Figma prototype as the animation spec?

Not on its own. A prototype gives a developer the duration and easing of one transition between two frames, and a visual reference for how the change should feel. It carries no timeline for multi-step sequences, no scroll-linked values, no custom curve unless typed out, and no reduced-motion state. Send the prototype alongside a written spec with the six fields per element.

Should I export animations as Lottie or let the developer code them?

Export to Lottie or dotLottie when the animation is illustrated, keyframed in After Effects, and would take longer to describe than to send. For hover states, reveals and anything driven by page events, write the spec and let the developer code it. Expect simple Lottie files to be rebuilt in CSS or SVG because they are lighter; the spec keeps the timing intact either way.

What easing should I use for UI animations?

Elements entering the screen usually decelerate, with ease-out or a curve like Material’s Deceleration cubic-bezier(0.0, 0.0, 0.2, 1), and elements leaving usually accelerate. Pick two or three curves for the whole site, give their cubic-bezier values once, and reference them by name. A new curve chosen per element is the fastest route to a site that feels inconsistent.

If you are preparing an animated design for an external build, tell us about the project.