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.88T 0.25
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 Spinner Animation</title>
7    <style>
8        /* 
9           Analysis of the animation:
10           - Background: Pure white (#FFFFFF)
11           - Object: A single cyan arc (approximately 1/4 to 1/3 of a circle)
12           - Color: A vibrant light blue/cyan (approx #00c3ff)
13           - Movement: Constant clockwise rotation (linear)
14           - Timing: Completes a full rotation roughly every 0.8 to 1.0 seconds
15        */
16
17        body {
18            margin: 0;
19            padding: 0;
20            display: flex;
21            justify-content: center;
22            align-items: center;
23            height: 100vh;
24            background-color: #ffffff;
25            overflow: hidden;
26        }
27
28        .loader {
29            /* Size estimated from video frames */
30            width: 36px;
31            height: 36px;
32            
33            /* Creating the arc shape using borders */
34            border: 3px solid transparent;
35            border-top: 3px solid #00daff; /* High-vibrancy cyan */
36            border-radius: 50%;
37            
38            /* Animation properties */
39            /* Using a linear timing function as the movement is consistent throughout frames */
40            animation: spin 0.8s linear infinite;
41            
42            /* Ensure smooth rendering in browsers */
43            will-change: transform;
44        }
45
46        @keyframes spin {
47            from {
48                transform: rotate(0deg);
49            }
50            to {
51                transform: rotate(360deg);
52            }
53        }
54
55        /* 
56           Positioning adjustment: 
57           In the video frames, the spinner appears slightly offset from the exact center.
58           We'll keep it centered for the document, but use a container if absolute 
59           positioning relative to the top-left is required.
60        */
61        .container {
62            position: absolute;
63            top: 15%;
64            left: 20%;
65        }
66    </style>
67</head>
68<body>
69    <!-- The spinner element -->
70    <div class="loader"></div>
71</body>
72</html>