Dataset Viewer
Auto-converted to Parquet Duplicate
animation_id
stringlengths
7
8
animation_name
stringlengths
3
62
source_animation_url
dict
input_svg
stringclasses
3 values
motion_edit_prompt
stringlengths
615
2.46k
verification_program
stringlengths
16.8k
38.9k
source_animation_info
stringlengths
24
52
10116636
Knife
{ "url": "https://iconscout.com/lottie-animation/knife-animation_10116636", "mcp_slug": "knife-12336952" }
null
At the start of the animation, collapse the curled cut flap into a flat slit along the paper’s top edge so the sheet appears uncut, while the utility knife rests at the right side with its blade mostly retracted. Make the paper gently bob upward first, then drift back downward. Slide the knife blade out along the knife...
from verifier_helper_library import ( get_frame_count, get_source_frames, get_canvas, list_elements, find_by_id, get_column, get_style_series, as_numbers, get_ancestors, get_centroid_series, get_screen_bbox_series, get_contour_series, get_path_ends_series, get_stroke_width_series, is_present_series,...
{"ip":0,"op":60,"fr":30}
10175370
Scissor
{ "url": "https://iconscout.com/lottie-animation/scissor-animation_10175370", "mcp_slug": "scissor-12479756" }
null
Treat the scissors as two rigid halves hinged at the central screw. From the open crossed pose in the provided SVG, rotate the upper blue-handled half clockwise around the screw while simultaneously rotating the lower yellow-handled half counterclockwise around the same pivot, so the long blades swing together into a n...
from verifier_helper_library import ( get_frame_count, get_canvas, list_elements, find_by_id, get_column, get_style_series, as_numbers, get_ancestors, get_centroid_series, get_contour_series, get_between_series, get_stroke_width_series, get_visible_fraction_series, is_seen_series, is_present_series, ...
{"ip":0,"op":90,"fr":30}
10299478
Schedule
{ "url": "https://iconscout.com/lottie-animation/schedule-animation_10299478", "mcp_slug": "schedule-12615009" }
null
Use the static SVG as the frame-0 starting state with no edits. Animate the entire spiral-bound calendar as one rigid object with a slow vertical bob: it drifts upward first while keeping its tilt and rotation unchanged, then moves back downward to where it sits in the provided SVG with ease-out. Independently animate ...
from verifier_helper_library import ( get_frame_count, is_complete, list_elements, find_by_id, get_column, get_ancestors, get_style_series, as_numbers, as_color, get_canvas, get_screen_bbox_series, get_centroid_series, get_contour_series, get_stretch_series, get_stroke_width_series, get_path_ends_series...
{"ip":0,"op":60,"fr":30}
10411624
Ireland
{ "url": "https://iconscout.com/lottie-animation/ireland-animation_10411624", "mcp_slug": "ireland-12808014" }
null
Frame 0 already matches the target: use the provided SVG as-is, with the existing clipped vertical letter stacks; no elements need to be moved, scaled, or hidden before animation begins. Keep each letter’s horizontal position, scale, and orientation fixed. For every letter in “IRELAND,” use its existing vertical stack ...
from verifier_helper_library import ( get_frame_count, get_source_frames, list_elements, find_by_id, get_column, get_style_series, as_numbers, as_color, get_component, get_ancestors, get_canvas, get_centroid_series, get_screen_bbox_series, get_contour_series, get_between_series, is_seen_series, get_visi...
{"ip":0,"op":150,"fr":30}
10433746
Vip Badge
{ "url": "https://iconscout.com/lottie-animation/vip-badge-animation_10433746", "mcp_slug": "vip-badge-12814942" }
null
Use the static SVG unchanged as the starting state. Keep the medal centered. Rotate the scalloped rosette behind the circular center clockwise around its own center through a half-turn during the first part of the motion, while the circular center stays put and keeps facing forward; it does not turn with the rosette. A...
from math import atan2, degrees from verifier_helper_library import ( find_by_id, list_elements, get_column, get_frame_count, get_canvas, get_screen_bbox_series, get_centroid_series, get_contour_series, get_style_series, as_numbers, as_color, get_ancestors, is_seen_series, get_visible_fraction_series, g...
{"ip":0,"op":61,"fr":30}
10489740
Woman Working from Home
{ "url": "https://iconscout.com/lottie-animation/woman-working-from-home-12927369", "mcp_slug": "woman-working-from-home-12927369" }
null
Animate only the seated person with one smooth looping idle-motion cycle. Starting from the neutral pose in the provided SVG, rotate the torso slightly around the hips so the upper body leans to the viewer’s left first, rotate back upright with ease-out timing, then lean the same amount to the viewer’s right, and retur...
from math import atan2, degrees from verifier_helper_library import ( find_by_id, list_elements, get_column, get_frame_count, get_source_frames, get_screen_bbox_series, get_contour_series, get_style_series, get_stroke_width_series, get_ancestors, is_seen_series, is_present_series, as_numbers, summarize,...
{"ip":0,"op":75,"fr":25}
10520551
luxury Hotel Building
{"url":"https://iconscout.com/lottie-animation/luxury-hotel-building-animation_10520551","mcp_slug":(...TRUNCATED)
null
"Start from the static SVG unchanged. Animate the front double doors so the two white panels slide h(...TRUNCATED)
"from math import log, log1p\nfrom verifier_helper_library import (get_frame_count, get_source_frame(...TRUNCATED)
{"ip":0,"op":60,"fr":30}
10747658
location
{ "url": "https://iconscout.com/lottie-animation/location-13088498", "mcp_slug": "location-13088498" }
null
"At frame 0, the ground ellipse, map pin, and business avatar are scaled to nothing, so the canvas i(...TRUNCATED)
"from verifier_helper_library import (\n get_frame_count, get_source_frames, get_canvas, list_ele(...TRUNCATED)
{"ip":0,"op":180,"fr":30}
10798981
Smiling Face With Sunglasses
{"url":"https://iconscout.com/lottie-animation/smiling-face-with-sunglasses-13246429","mcp_slug":"sm(...TRUNCATED)
null
"Begin from the static pose. Squash the whole emoji face, including the green head, sunglasses, and (...TRUNCATED)
"from verifier_helper_library import (find_by_id, list_elements, get_column, get_frame_count, get_so(...TRUNCATED)
{"ip":0,"op":120,"fr":60}
10842214
Auction
{ "url": "https://iconscout.com/lottie-animation/auction-13309228", "mcp_slug": "auction-13309228" }
null
"Use the static SVG as the frame-0 starting pose with no changes. Animate the gavel as one rigid gro(...TRUNCATED)
"from verifier_helper_library import (\n list_elements, find_by_id, get_column, get_style_series,(...TRUNCATED)
{"ip":0,"op":60,"fr":30}
End of preview. Expand in Data Studio

MotionGraphicsBench: Evaluating Motion Graphics Generation with Programmatic Verification

Jiaju Ma1,2,*    Ashvini Kumar Jindal2,*    Chuhua Wang2    Sumithra Bhakthavatsalam2
1Stanford University    2Figma    *Equal contribution

Paper on arXiv Hugging Face blog post Data license: CC BY-NC-SA 4.0 Code license: MIT

MotionGraphicsBench is an expert-curated benchmark for evaluating how well large language models (LLMs) can animate static vector graphics. It consists of 100 tasks, each of which provides a model with an input static SVG and a motion edit prompt and asks it to animate the static visual elements according to the prompt. Each task is paired with a deterministic, human-readable verification program that evaluates the generated animation as an ordered sequence of SVG frames. The program measures the elements' geometry, appearance, and motion over time to check the prompt requirements, and then returns a verification report with an overall decision and the checks that passed or failed.

Read our blog for an overview of the benchmark and results, and our paper for the full methods and evaluation. Explore all 100 tasks and animations on the project page.

Quick start

Clone the repository:

git clone https://huggingface.co/datasets/figma-ai/motion-graphics-bench
cd motion-graphics-bench

From the repository root, install the dependencies:

uv sync --locked --no-dev
npm ci
uv run playwright install chromium

Or use a Python virtual environment with pip:

python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install "mover==0.4.0" "pyarrow>=25.0.1"
npm ci
python -m playwright install chromium

With the pip installation, replace uv run python with python in the examples below.

Benchmark

Our benchmark contains 100 motion editing tasks, each with an input static SVG, a PNG version of the SVG, a motion edit prompt, and a verification program.

This release provides the benchmark's input static SVGs, motion edit prompts, and verification programs. A few input static SVGs are already included, while the others need to be extracted from their linked source Lottie animations.

The benchmark configuration contains one task per row.

Field Type Description
animation_id string Stable task identifier.
animation_name string Task name.
source_animation_url object or null source Lottie animations on IconScout: url for the website and mcp_slug for IconScout MCP. null when unavailable.
input_svg string or null Included input static SVG, or null when it needs to be extracted from the source Lottie animation.
motion_edit_prompt string Motion instructions given to the model.
verification_program string Python source code for the task's verification program.
source_animation_info string Timing as JSON: ip (start frame), op (end frame), and fr (frame rate).

Our blog and paper describe how we build the benchmark with the source animations and evaluate its verification programs.

Load the benchmark configuration using the Datasets library:

from datasets import load_dataset

benchmark = load_dataset(
    "figma-ai/motion-graphics-bench",
    "benchmark",
    split="test",
)

Model outputs

We release 53,180 model outputs in the model_outputs configuration: 51,200 generation attempts used to evaluate 32 LLMs across 47 model settings and 1,980 outputs collected for human review.

Field Type Description
animation_id string Identifier of the corresponding benchmark task.
animation_name string Task name.
model_id string Model identifier.
reasoning_effort string Recorded reasoning-effort setting.
inference_params string Generation settings as JSON; unknown defaults and internal request details are omitted.
response_index int32 Generation attempt index, starting at zero.
generated_animation_program string or null Saved GSAP animation program, or null if unavailable.
output_usage string Why the output was collected: model_evaluation or human_labeling.
passed_checks list of strings or null Names of checks that passed, or null if no completed check results are available.
failed_checks list of strings or null Names of checks that failed, or null if no completed check results are available.
verification_decision boolean or null Recorded overall verification decision, or null if unavailable.
human_decision string or null approve, reject, cannot_judge, unresolved, or null when not reviewed.
human_rationales list of strings or null Reviewer comments; an empty list means a reviewed output had no comments.

Load the model_outputs configuration:

from datasets import load_dataset

model_outputs = load_dataset(
    "figma-ai/motion-graphics-bench",
    "model_outputs",
    split="test",
)

Download source Lottie animations

A source_animation_url in benchmark contains an object like this:

{
  "url": "https://iconscout.com/lottie-animation/puggy-bank-piggy-bank-10501958",
  "mcp_slug": "puggy-bank-piggy-bank-10501958"
}

First, set up an IconScout account with access to Lottie JSON. To download manually, open url, choose the original Lottie JSON without changing colors, and save it as lottie-json/<animation_id>.json. Use the benchmark's animation_id, not the number in the URL or slug: the example above is task 9436068.

For MCP-assisted downloads, connect a coding agent with local file access to https://mcp.iconscout.com/mcp and authorize your IconScout account. Setup guide: https://help.iconscout.com/getting-started-with-the-iconscout-mcp-server.

Give the coding agent this prompt:

Read data/benchmark/test-00000-of-00001.parquet.
For each non-null source_animation_url, use IconScout MCP get_asset with its
mcp_slug and confirm the returned identifier ends with "_" + animation_id.
Use download_asset with that slug and format="json", without recoloring or
resizing. Save the returned file as lottie-json/<animation_id>.json.
Work sequentially, respect rate and download limits, and report skipped or
failed IDs. Do not overwrite existing files, substitute assets, or make purchases.
Keep downloaded files local; do not commit or upload them.

Rebuild input static SVGs

After downloading the source Lottie animation JSON files, run the command below. It uses included input static SVGs and extracts the remaining input static SVGs from the downloaded source Lottie animation JSON files.

mkdir -p outputs
curl -fsSL https://raw.githubusercontent.com/airbnb/lottie-web/v5.13.0/build/player/lottie.min.js \
  -o outputs/lottie.min.js
uv run python scripts/extract_input_static_svgs.py \
  --dataset data/benchmark/test-00000-of-00001.parquet \
  --lottie-dir lottie-json \
  --lottie-web outputs/lottie.min.js \
  --output-parquet outputs/benchmark.parquet

Verify an animation

Vector animations can be created in many ways, including CSS animations, JavaScript libraries, and formats such as Lottie. The verification of MotionGraphicsBench is independent of how animations are created: each verification program evaluates an ordered sequence of compatible SVG frames. In this repository, we provide a renderer built on MoVer to convert JavaScript animations written with GSAP into SVG frames.

Run only verification programs you trust. Verification programs run in Python subprocesses with timeouts, but this is not a security sandbox: the code can access files and the network. Use an isolated container or virtual machine without secrets for untrusted code or dataset files. Browser network restrictions apply only to rendering, not Python verification.

scripts/benchmark_pipeline.py supports animation generation, GSAP rendering, and SVG-frame verification:

benchmark_pipeline.py (--animation-id ID [ID ...] | --all-animations)
                      [--model MODEL] [--model-params JSON] [--num-generations N]
                      [--stages STAGE [STAGE ...]] [--program FILE] [--frames FILE]
                      --output-dir DIR [--dataset PATH]
                      [--system-prompt-suffix TEXT]
                      [--capture-duration SECONDS] [--timeout SECONDS]

List all command-line options:

uv run python scripts/benchmark_pipeline.py --help

Pipeline options

  • --model MODEL: LiteLLM model identifier; required for generation.
  • --animation-id ID: Select one task; required when using a saved program or frame sequence.
  • --animation-id ID1 ID2: Generate for several selected tasks.
  • --all-animations: Generate for every task instead of using --animation-id.
  • --num-generations N: Number of independent generation attempts per task; defaults to 1.
  • --stages ...: Choose generate, generate render, generate render verify, render, verify, or render verify. Defaults to generate render verify with --model, otherwise render verify.
  • --program FILE: GSAP JavaScript file to render without a model call.
  • --frames FILE: JSON file containing an ordered list of SVG strings; use with --stages verify.
  • --model-params JSON: Model request settings, such as output-token limits, reasoning effort, or "stream": true. LiteLLM validates these settings; supported options depend on the model and provider.
  • --system-prompt-suffix TEXT: Append model-specific text to the system prompt.
  • --output-dir PATH: New output directory.
  • --dataset PATH: For generation or rendering, use outputs/benchmark.parquet, which contains the extracted input static SVGs. To verify existing SVG frames, use the released benchmark directly with --stages verify --frames frames.json.
  • --capture-duration SECONDS: Capture duration in seconds for repeating animations; requires rendering.
  • --timeout SECONDS: Time limit in seconds for each model request, rendering, measurement, or verification operation; defaults to 900.

For retries within a model request, set num_retries in --model-params (default 0). These retries do not count as separate generation attempts.

Verify SVG frames

uv run python scripts/benchmark_pipeline.py \
  --animation-id 10175370 \
  --stages verify \
  --frames frames.json \
  --output-dir outputs/scissor-verify

frames.json contains an ordered list of SVG strings. The pipeline reads the task's verification program and frame rate from the released benchmark.

Render and verify an animation program

uv run python scripts/benchmark_pipeline.py \
  --dataset outputs/benchmark.parquet \
  --animation-id 10175370 \
  --program program.js \
  --output-dir outputs/scissor

This command renders the animation program written with GSAP into SVG frames, then runs the task's verification program on those frames.

To render without verification, add --stages render:

uv run python scripts/benchmark_pipeline.py \
  --dataset outputs/benchmark.parquet \
  --animation-id 10175370 \
  --stages render \
  --program program.js \
  --output-dir outputs/scissor-render

Generate animations

We use MoVer to generate JavaScript animation programs with GSAP. MoVer provides access to cloud and local LLMs through LiteLLM. Models receive the input static SVG, motion edit prompt, and duration and frame-rate requirements, but not source animations or verification programs. Each generation attempt is independent and receives no feedback from earlier attempts.

For example, use Qwen3-Coder through OpenRouter to generate four GSAP animation programs for the Scissor task (10175370). Set OPENROUTER_API_KEY before running the following command:

uv run python scripts/benchmark_pipeline.py \
  --dataset outputs/benchmark.parquet \
  --animation-id 10175370 \
  --model openrouter/qwen/qwen3-coder-30b-a3b-instruct \
  --model-params '{"max_output_tokens":4096}' \
  --num-generations 4 \
  --stages generate \
  --output-dir outputs/scissor-generated

For OpenAI, set OPENAI_API_KEY and use an openai/... model. Other provider configurations can be found at https://docs.litellm.ai/docs/providers. See pipeline options for task selection, stages, and defaults. Omit --stages generate to also render and verify each program.

Outputs

  • <animation_id>/messages.json: The system and user messages for each task, including any system-prompt suffix.
  • <animation_id>/<response_index>/: One directory per generation attempt, numbered from zero. Contains program.js when generation succeeds and a report.json with the full model response when available, partial streamed text, and any errors. Rendering also produces SVG frames.
  • report.json: A summary of the run, including each attempt and selected model settings (recorded_model_params).

Reports may include full model responses, so keep secrets out of prompts and request metadata.

Local models

Ollama

Server setup: https://docs.ollama.com/cli

uv run python scripts/benchmark_pipeline.py \
  --dataset outputs/benchmark.parquet \
  --animation-id 10175370 \
  --model ollama_chat/qwen2.5-coder:3b \
  --model-params '{"api_base":"http://127.0.0.1:11434","num_ctx":32768,"max_output_tokens":4096}' \
  --output-dir outputs/scissor-ollama

vLLM

Server setup: https://docs.vllm.ai/en/stable/serving/online_serving/openai_compatible_server/

uv run python scripts/benchmark_pipeline.py \
  --dataset outputs/benchmark.parquet \
  --animation-id 10175370 \
  --model hosted_vllm/Qwen/Qwen2.5-Coder-3B-Instruct \
  --model-params '{"api_base":"http://127.0.0.1:8000/v1","use_chat_completions_api":true,"max_output_tokens":4096}' \
  --output-dir outputs/scissor-vllm

License and attribution

We release the MotionGraphicsBench datasets under CC BY-NC-SA 4.0, and repository-authored code, including the benchmark verification programs, under the MIT License.

The datasets are intended for research and other non-commercial uses under CC BY-NC-SA 4.0. Users are responsible for complying with applicable laws and licenses and obtaining any additional permissions required for their intended use.

Rights to third-party content remain with its original owners. Including or processing that content does not change its ownership, imply endorsement or affiliation, or grant rights beyond applicable licenses and permissions.

The datasets are provided "AS IS" and "AS AVAILABLE", with the warranty disclaimers and liability limits in Section 5 of CC BY-NC-SA 4.0, subject to applicable law.

Rights holders may contact the maintainers with the relevant animation IDs and details of a removal request. We will review legitimate requests and address verified claims.

Our code runtime depends on:

  • MoVer, distributed under the Apache License 2.0.
  • GSAP, used under its own licensing terms.

These dependency licenses do not replace the MotionGraphicsBench data and code licenses above.

Citation

If you use MotionGraphicsBench, please cite our paper:

@article{ma2026motiongraphicsbench,
  title   = {MotionGraphicsBench: Evaluating Motion Graphics Generation with Programmatic Verification},
  author  = {Ma, Jiaju and Jindal, Ashvini Kumar and Wang, Chuhua and Bhakthavatsalam, Sumithra},
  journal = {arXiv preprint arXiv:2611.10592},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.10592}
}
Downloads last month
2,376

Paper for figma-ai/motion-graphics-bench

Article mentioning figma-ai/motion-graphics-bench