AnimWeb-Bench: Benchmarking Animated Webpage Code Generation from Videos
Abstract
Animation is pervasive on the Web, the CSS animation property alone appears on over three-quarters of webpages. Yet existing webpage code generation benchmarks target static screenshots, user-triggered interactions, or isolated motion graphics, leaving the ability of multimodal large language models (MLLMs) and coding agents to reconstruct complete animated webpages largely unexplored. To fill this gap, we introduce AnimWeb-Bench, the first benchmark for animated webpage code generation from videos. It comprises 124 real-world webpages spanning 7 application domains and 33 animation types, with 91.9% of pages combining multiple types, each paired with a reference video and the static assets of the original webpage. We further propose a human-aligned, two-dimensional evaluation protocol: Static Appearance Fidelity measures structure, text, color, and visual similarity on aligned keyframes, while Animation Fidelity tracks UI components across frames and compares their position, size, velocity, and appearance with those in the reference video. Evaluating 14 MLLMs and three coding agents reveals: (1) reproducing webpage animations is substantially more difficult than reproducing static appearance; (2) explicit frame inspection and render feedback improve the reconstruction quality of coding agents; and (3) rapid, continuous changes are harder to reproduce than discrete state transitions. Our code and dataset are available at https://starry1001.github.io/AnimWeb-Bench-website/ .
Create a lesson
Metadata
- Categories
- cs.SE, cs.CV
Related papers
AgentScript-Eval: Benchmarking LLMs and Agents for Code Generation in an Enterprise DSL
Shared title terminologycs.SEDipin Khati, Shubham Mehrotra, Bin Bi et al.
DSL-Bench: Evaluating and Explaining LLM Code Generation Across Domain-Specific Languages
Shared title terminologycs.SEZihan Zhou, Mingxi Ye, Yan Gao et al.
Spec-Test Coverage Gap: Detecting Overspecified Tests in SWE-Bench-Style Benchmarks
Shared title terminologycs.SEAvi Aggarwal, Yiran Hu
fx(hash): Salvaging The Source Code of 28k Generative Artworks
Shared title terminologycs.SEBenoit Baudry, Valeriia Bezklynska, Martin Monperrus
Micro Operational Robustness of LLMs on Code Generation
Shared title terminologycs.SEDebalina Ghosh Paul, Hong Zhu, Ian Bayley
TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?
Shared title terminologycs.SEMarcio Andre de Souza Estevam