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.71T 0.26
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>Loader Recreation</title>
7    <style>
8        /* 
9           Background: Dark gray/slate color observed in the video.
10           Centering the loader at the top as shown.
11        */
12        body {
13            background-color: #2c3136;
14            margin: 0;
15            display: flex;
16            justify-content: center;
17            align-items: flex-start;
18            padding-top: 40px; /* Positions the loader near the top */
19            height: 100vh;
20            overflow: hidden;
21        }
22
23        /* 
24           The loader:
25           - Size: Small diameter (approx 18px).
26           - Shape: An arc (border-top-color) on a circle.
27           - Color: Vibrant orange (#f36d21).
28           - Timing: Approx 1 rotation per second.
29        */
30        .spinner {
31            width: 18px;
32            height: 18px;
33            border: 2px solid transparent;
34            border-top: 2px solid #f36d21; /* Only the top arc is visible */
35            border-radius: 50%;
36            animation: spin 0.85s linear infinite;
37        }
38
39        /* 
40           Continuous clockwise rotation 
41        */
42        @keyframes spin {
43            0% {
44                transform: rotate(0deg);
45            }
46            100% {
47                transform: rotate(360deg);
48            }
49        }
50    </style>
51</head>
52<body>
53    <div class="spinner"></div>
54</body>
55</html>