animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Animated Concepts #3

model output

Qwen3-VL-8B-Instruct

Animated Concepts #3

A 0.68T 0.20
compare with ground truth →
1<!DOCTYPE html>
2<html lang="en">
3<head>
4<meta charset="UTF-8">
5<meta name="viewport" content="width=device-width, initial-scale=1.0">
6<title>Pixel Animation</title>
7<style>
8  body {
9    background-color: #121212;
10    display: flex;
11    justify-content: center;
12    align-items: center;
13    height: 100vh;
14    margin: 0;
15  }
16  .pixel-container {
17    position: relative;
18    width: 100px;
19    height: 100px;
20  }
21  .pixel {
22    position: absolute;
23    width: 10px;
24    height: 10px;
25    background-color: #ff6b6b;
26    border-radius: 50%;
27    transition: transform 0.5s ease-out;
28  }
29  .pixel:nth-child(1) {
30    top: 20px;
31    left: 20px;
32  }
33  .pixel:nth-child(2) {
34    top: 20px;
35    left: 40px;
36  }
37  .pixel:nth-child(3) {
38    top: 20px;
39    left: 60px;
40  }
41  .pixel:nth-child(4) {
42    top: 40px;
43    left: 20px;
44  }
45  .pixel:nth-child(5) {
46    top: 40px;
47    left: 40px;
48  }
49  .pixel:nth-child(6) {
50    top: 40px;
51    left: 60px;
52  }
53  .pixel:nth-child(7) {
54    top: 60px;
55    left: 20px;
56  }
57  .pixel:nth-child(8) {
58    top: 60px;
59    left: 40px;
60  }
61  .pixel:nth-child(9) {
62    top: 60px;
63    left: 60px;
64  }
65</style>
66</head>
67<body>
68  <div class="pixel-container" id="pixelContainer">
69    <div class="pixel"></div>
70    <div class="pixel"></div>
71    <div class="pixel"></div>
72    <div class="pixel"></div>
73    <div class="pixel"></div>
74    <div class="pixel"></div>
75    <div class="pixel"></div>
76    <div class="pixel"></div>
77    <div class="pixel"></div>
78  </div>
79
80  <script>
81    const container = document.getElementById('pixelContainer');
82    const pixels = container.querySelectorAll('.pixel');
83
84    // Initial animation
85    setTimeout(() => {
86      pixels.forEach((pixel, index) => {
87        pixel.style.transform = `translate(${Math.random() * 20 - 10}px, ${Math.random() * 20 - 10}px) rotate(${Math.random() * 360}deg) scale(${1 + Math.random() * 0.5})`;
88      });
89    }, 300);
90
91    // Reset animation after 1 second
92    setTimeout(() => {
93      pixels.forEach((pixel, index) => {
94        pixel.style.transform = 'translate(0, 0) rotate(0deg) scale(1)';
95      });
96    }, 1000);
97  </script>
98</body>
99</html>