animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to SVG Loading icons

model output

Gemini 3 Flash Preview

SVG Loading icons

A 0.68T 0.33
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>CSS Spinner Animation</title>
7    <style>
8        /* 
9           Background color matches the dark charcoal/slate UI (#2c3136).
10           The layout uses flexbox to position the loader at the top-center 
11           exactly as seen in the provided video frames.
12        */
13        body {
14            margin: 0;
15            padding: 0;
16            background-color: #2c3136;
17            display: flex;
18            justify-content: center;
19            align-items: flex-start;
20            height: 100vh;
21            /* Loader is positioned near the top of the viewport */
22            padding-top: 40px; 
23            overflow: hidden;
24        }
25
26        /* 
27           The loader is a small, thin orange ring.
28           - Size: 18px diameter
29           - Color: A vibrant orange (#ff8c00)
30           - Border: Transparent for the base, with the top colored to create the arc.
31        */
32        .loader {
33            width: 18px;
34            height: 18px;
35            border: 1.5px solid rgba(255, 140, 0, 0.1); /* Subtle base ring */
36            border-top: 1.5px solid #ff8c00; /* Visible spinning arc */
37            border-radius: 50%;
38            
39            /* 
40               The animation is a continuous rotation.
41               - Timing: 0.8 seconds per full rotation.
42               - Easing: Linear, for a constant, smooth spin.
43            */
44            animation: spin 0.8s linear infinite;
45        }
46
47        /* Keyframes for a full 360-degree rotation */
48        @keyframes spin {
49            0% {
50                transform: rotate(0deg);
51            }
52            100% {
53                transform: rotate(360deg);
54            }
55        }
56    </style>
57</head>
58<body>
59    <!-- Simple HTML structure with a single div for the animated loader -->
60    <div class="loader"></div>
61</body>
62</html>