animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Such Spinners, Much Loading

model output

Gemini 3 Flash Preview

Such Spinners, Much Loading

A 0.89T 0.28
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>Spinning Loader Animation</title>
7    <style>
8        /* 
9           CSS Animation Reconstruction:
10           - Matches the circular rotation observed in the frames.
11           - Frames indicate a 90-degree shift every 0.5s, 
12             suggesting a total cycle duration of 2.0s.
13           - Visual style: Dark circle with an offset white circle inside.
14        */
15
16        body, html {
17            margin: 0;
18            padding: 0;
19            width: 100%;
20            height: 100%;
21            display: flex;
22            justify-content: center;
23            align-items: center;
24            background-color: #ffffff;
25        }
26
27        .loader {
28            position: relative;
29            width: 24px;
30            height: 24px;
31            background-color: #333333; /* Dark gray/black circle */
32            border-radius: 50%;
33            
34            /* Linear rotation to match the steady progression in the frames */
35            animation: spin 2s linear infinite;
36        }
37
38        /* The white "eye" or inner circle offset from the center */
39        .loader::after {
40            content: '';
41            position: absolute;
42            top: 3px;
43            left: 3px;
44            width: 10px;
45            height: 100px; /* Placeholder for ratio, will use 10px square */
46            width: 10px;
47            height: 10px;
48            background-color: #ffffff;
49            border-radius: 50%;
50        }
51
52        @keyframes spin {
53            0% {
54                transform: rotate(0deg);
55            }
56            100% {
57                transform: rotate(360deg);
58            }
59        }
60    </style>
61</head>
62<body>
63
64    <div class="loader"></div>
65
66</body>
67</html>