Penpot Motion: keyframe animation for boards (experimental)

Penpot Motion + MCP: an AI assistant designs and animates a screen :robot:

Penpot’s MCP server lets an AI assistant work in a Penpot file through the plugin API, and on the Penpot Motion branch that API includes the whole animation side. So I tried building a small animated screen from scratch, prompt by prompt.

What the assistant did, in six prompts

  1. Built the screen: a 1280×720 board with a payment confirmation card: a green check, title, amount, a line of details and a Done button.
  2. Animated it: a timeline for the board, the card rising in on a soft spring, the ring around the check drawing itself with a trim, the disc popping and the tick following.
  3. Staggered the texts: title, amount and details fading and rising 80 ms apart, and the button popping in last with a bit of overshoot.
  4. Added a finish: a burst of ten dots as the check completes, the glow brightening with it, a short exit, and a loop every 4 seconds.
  5. Made it reusable: a token set “motion” (two durations, a soft spring and an ease-out curve) and an animation style “Card enter” bound to those tokens, which the card now plays. Any layer can use it from Assets.
  6. Handed it off: the timeline exported as React code for motion.dev.

How the video was made

Every change you see on the canvas is a real execute_code call that went through the MCP server into the open file.

What the assistant can reach

Everything in the Motion API: timelines, keyframes on every animatable property (springs and bezier curves included), preset animations, animation styles, motion tokens, trims, follow, links, wiggle, markers, audio clips, and the code exports (toCSS, toReact, toJSON). The MCP server on the branch carries the docs for all of it, so the assistant can look things up with penpot_api_info before it writes code.

Try it

On the branch, enable MCP in your account’s integrations, open a file and connect, then point your MCP client at the server. Describe the motion in plain words. The assistant picks keyframes or presets on its own, and you can always ask it to turn what it made into tokens and styles.

The file from the video, to play with or take apart:
Penpot Motion – MCP demo.penpot (26.6 KB)

5 Likes

Penpot Motion: prototypes in a device :iphone:

Hi everyone! Since the last update, the view mode can show your prototype in a device, and the device turns. Everything is pushed: GitHub - girafic/penpot at girafic-penpot-timeline-animation · GitHub

Devices

  • A Device menu in the header of the view mode: iPhone (Dynamic Island, notch, SE, and the Duo closed or open), Android phone, iPad, MacBook, Apple Watch, iMac and a browser window, in a dark or a light finish. Automatic picks one that fits the size of the board.
  • The board shows at the width of the device’s screen. A longer board scrolls inside the screen: on a touch device you drag it, it coasts on and bounces off the ends, and past an end it gives like rubber and springs back (with a trackpad too).

Turning the device

  • Phones and tablets turn, with the button next to the Device menu. The device turns as it would in your hand and keeps its size.
  • If the board has a landscape version, that one shows: found by name (“Menu” and “Menu (landscape)”), or picked by hand in the Prototype tab (Landscape version / Portrait version). Without one, the board itself turns and its layers follow their constraints.
  • The landscape version plays its own animation as it comes in.

In the preview of the workspace

  • With a device, Shift + Space shows the device alone over the canvas, its bar right on top. Drag the bar to move it, drag its frame to scale it.
  • It turns the same way, smoothly, and shows a loader on its screen until the board is drawn.
  • Open in view mode keeps the device.

Prototype background

  • With nothing selected, the Prototype tab has a Prototype background: a colour or a gradient, linear or radial. The view mode shows it behind the boards and round the device. The video uses a radial one.

Also new since the last update

  • Faster playback: a frame only sends the layers it changes, layers that hold still or sit at 0 % opacity are skipped, a blur is only drawn where something is painted, and the viewport and the design tab no longer render every frame. Full quality plays in one pass too.
  • Code in Inspect: the React code now has the markup of the board, trims play in the CSS, ellipses stay round in the CSS, and a stroked layer keeps its place in the SVG.
  • A stroke on one side only (a border at the top, say) no longer leaves a 1 px gap round the fill.
  • file.export of the plugin API works again.

The file in the video is the coffee prototype, now built from design tokens and components, every screen in flex layouts, with a landscape version of each screen:

Penpot Motion – iPhone prototype 20261103.penpot (1.1 MB)

5 Likes

A sneak peek at what I’m working on next: prototypes that scroll.

4 Likes

Hi @girafic

I’ve been doing some testing. The playground is amazing, by the way, and I’m already working with it!

Yesterday I managed to install the latest version, though I ran into a few difficulties.

I’ve left a couple of issues I found: the jitter one (in my fedora!!!) and the export one. In the meantime, could you let me know if the bugs work for you the way I’m sending them? Is it helpful, or would you prefer a different format?

One small thing in case it helps other people who try it: in docker/images/docker-compose.yaml, about flags: enable-feature-animation flag, and that the backend needs it too for audio uploads, but PENPOT_FLAGS itself doesn’t include it. When I used the compose file as it was, I had to add enable-feature-animation to PENPOT_FLAGS myself before the Motion panel showed up. Is that intentional (e.g. you enable it some other way), or would it make sense to have it on by default in that compose file?

Also, for anyone building the images from source: I got apt errors (exit code 100) in the backend, exporter and media-processor Dockerfiles because of the dhi.io base image digests. That one looks like it comes from upstream Penpot rather than this branch, so I reported it to the Penpot infra team separately.

I built it on Fedora with Docker, from commit 716377ca66, on 5 Nov 2026.

best!!!