animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Single Element Spinner

model output

Gemini 3 Flash Preview

Single Element Spinner

A 0.91T 0.30
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>Cyan Loading Spinner</title>
7    <style>
8        /* Reset and layout */
9        body {
10            margin: 0;
11            padding: 0;
12            display: flex;
13            justify-content: center;
14            align-items: center;
15            height: 100vh;
16            background-color: #ffffff;
17        }
18
19        /* The Spinner Container */
20        .spinner-container {
21            position: absolute;
22            /* Positioning based on the provided frames (top-left quadrant) */
23            top: 15%;
24            left: 20%;
25        }
26
27        /* The Spinner Element */
28        .spinner {
29            width: 32px;
30            height: 32px;
31            border: 3px solid #00bfff; /* Bright Cyan/Sky Blue */
32            border-right-color: transparent; /* Creates the gap in the ring */
33            border-radius: 50%;
34            
35            /* 
36               Timing Analysis:
37               In the provided frames (0s to 1.5s), the spinner rotates steadily.
38               A full 360-degree rotation takes approximately 1 second.
39            */
40            animation: spin 1s linear infinite;
41            
42            /* Smooth rendering */
43            box-sizing: border-box;
44        }
45
46        /* Rotation Animation */
47        @keyframes spin {
48            from {
49                transform: rotate(0deg);
50            }
51            to {
52                transform: rotate(360deg);
53            }
54        }
55    </style>
56</head>
57<body>
58
59    <div class="spinner-container">
60        <div class="spinner"></div>
61    </div>
62
63</body>
64</html>