animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to 4 'counter rotation' effects

model output

Qwen3-VL-8B-Instruct

4 'counter rotation' effects

A 0.41T 0.27
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>Animation</title>
7    <style>
8        body {
9            background-color: #000;
10            overflow: hidden;
11            margin: 0;
12            padding: 0;
13            display: flex;
14            justify-content: center;
15            align-items: center;
16            height: 100vh;
17        }
18        .container {
19            position: relative;
20            width: 100px;
21            height: 100px;
22        }
23        .square {
24            position: absolute;
25            width: 20px;
26            height: 20px;
27            border: 2px solid #000;
28            transition: transform 0.5s ease-in-out;
29        }
30        .center {
31            background-color: white;
32            top: 0;
33            left: 0;
34            transform: translate(-50%, -50%);
35        }
36        .top {
37            top: 0;
38            left: 50%;
39            transform: translateX(-50%);
40        }
41        .bottom {
42            bottom: 0;
43            left: 50%;
44            transform: translateX(-50%);
45        }
46        .left {
47            left: 0;
48            top: 50%;
49            transform: translateY(-50%);
50        }
51        .right {
52            right: 0;
53            top: 50%;
54            transform: translateY(-50%);
55        }
56        .top-left {
57            top: 0;
58            left: 0;
59        }
60        .top-right {
61            top: 0;
62            right: 0;
63        }
64        .bottom-left {
65            bottom: 0;
66            left: 0;
67        }
68        .bottom-right {
69            bottom: 0;
70            right: 0;
71        }
72        .top .square, .bottom .square, .left .square, .right .square {
73            background-color: #c00;
74        }
75        .top-left .square, .top-right .square, .bottom-left .square, .bottom-right .square {
76            background-color: #00c;
77        }
78        .center .square {
79            background-color: white;
80        }
81        @keyframes pulse {
82            0% {
83                transform: translate(-50%, -50%) scale(1);
84            }
85            50% {
86                transform: translate(-50%, -50%) scale(1.2);
87            }
88            100% {
89                transform: translate(-50%, -50%) scale(1);
90            }
91        }
92        .container {
93            animation: pulse 1.5s infinite;
94        }
95    </style>
96</head>
97<body>
98    <div class="container">
99        <div class="square center"></div>
100        <div class="square top"></div>
101        <div class="square bottom"></div>
102        <div class="square left"></div>
103        <div class="square right"></div>
104        <div class="square top-left"></div>
105        <div class="square top-right"></div>
106        <div class="square bottom-left"></div>
107        <div class="square bottom-right"></div>
108    </div>
109</body>
110</html>