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

model output

Gemini 3 Flash Preview

Simple Spinner

A 0.88T 0.43
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>Circular Spinner Animation</title>
7    <style>
8        /* 
9           Analysis of Animation:
10           - Background: Solid deep blue (#0049b4)
11           - Loader: Two symmetrical arcs of a circle
12           - Color: Bright sky blue (#4fc3f7)
13           - Movement: Continuous clockwise rotation
14           - Easing: Linear (constant speed)
15           - Duration: Approximately 1.5 seconds per full rotation
16        */
17
18        body {
19            margin: 0;
20            padding: 0;
21            display: flex;
22            justify-content: center;
23            align-items: center;
24            height: 100vh;
25            background-color: #0049b4; /* Matched to video background */
26            overflow: hidden;
27        }
28
29        .spinner {
30            position: relative;
31            width: 44px;
32            height: 44px;
33            border-radius: 50%;
34            /* 
35               Creating two arcs using borders. 
36               Transparent borders for left/right create the gaps seen in the video.
37            */
38            border: 3px solid transparent;
39            border-top: 3px solid #4fc3f7;
40            border-bottom: 3px solid #4fc3f7;
41            
42            /* Animation timing matches the steady pace of the video */
43            animation: spin 1.5s linear infinite;
44        }
45
46        @keyframes spin {
47            0% {
48                transform: rotate(0deg);
49            }
50            100% {
51                transform: rotate(360deg);
52            }
53        }
54
55        /* 
56           To match the video's specific arc length (shorter than 90 degrees), 
57           we can use a pseudo-element mask or simply ensure the border-radius 
58           and border-width create the visual appearance of the curved segments.
59        */
60    </style>
61</head>
62<body>
63
64    <div class="spinner"></div>
65
66</body>
67</html>