animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Loaders (WIP)

model output

Gemini 3 Flash Preview

Loaders (WIP)

A 0.94T 0.29
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>Loading Spinner Animation</title>
7    <style>
8        /* 
9           CSS Analysis:
10           - Background: Vibrant red (#e74c3c).
11           - Spinner: A faint white ring with a solid white dot orbiting it.
12           - Positioning: The spinner is centered horizontally and placed near the top.
13           - Timing: Approximately 1.2 seconds per full rotation.
14           - Easing: Linear movement.
15        */
16
17        body, html {
18            margin: 0;
19            padding: 0;
20            width: 100%;
21            height: 100%;
22            background-color: #e74c3c;
23            display: flex;
24            justify-content: center;
25            align-items: flex-start; /* Aligns spinner to the top area */
26            overflow: hidden;
27        }
28
29        .container {
30            margin-top: 15vh; /* Vertical offset matching the video */
31        }
32
33        .spinner {
34            position: relative;
35            width: 54px;
36            height: 54px;
37            border: 2px solid rgba(255, 255, 255, 0.35); /* Faint track ring */
38            border-radius: 50%;
39            animation: spin 1.2s linear infinite;
40            box-sizing: border-box;
41        }
42
43        /* The orbiting dot */
44        .spinner::after {
45            content: '';
46            position: absolute;
47            width: 8px;
48            height: 8px;
49            background-color: #ffffff;
50            border-radius: 50%;
51            top: -5px; /* Positions dot center on the ring's stroke */
52            left: 50%;
53            transform: translateX(-50%);
54            box-shadow: 0 0 2px rgba(0,0,0,0.1);
55        }
56
57        @keyframes spin {
58            from {
59                transform: rotate(0deg);
60            }
61            to {
62                transform: rotate(360deg);
63            }
64        }
65    </style>
66</head>
67<body>
68
69    <div class="container">
70        <div class="spinner"></div>
71    </div>
72
73</body>
74</html>