animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Spinners using Font Icons

model output

Gemini 3 Flash Preview

Spinners using Font Icons

A 0.83T 0.35
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>Arc Spinner Animation</title>
7    <style>
8        /* 
9           Analysis:
10           - Background is a dark charcoal gray/black (#121212).
11           - The loader is an arc that occupies roughly 75% of a circle.
12           - It has a subtle "tapered" or fading edge look.
13           - The movement is a smooth, continuous clockwise rotation.
14           - The loader is positioned near the top-center of the viewport.
15        */
16
17        body, html {
18            margin: 0;
19            padding: 0;
20            width: 100%;
21            height: 100%;
22            background-color: #121212;
23            display: flex;
24            justify-content: center;
25            /* In the video, the spinner is positioned towards the top */
26            align-items: flex-start;
27            padding-top: 50px;
28            overflow: hidden;
29        }
30
31        .loader-container {
32            position: relative;
33            width: 48px;
34            height: 48px;
35        }
36
37        .spinner {
38            width: 100%;
39            height: 100%;
40            border-radius: 50%;
41            /* 
42               We use conic-gradient combined with a mask to create the 
43               distinct tapered arc seen in the video frames.
44            */
45            background: conic-gradient(from 0deg, transparent 20%, #ffffff 100%);
46            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
47            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
48            
49            /* Animation timing matches the smooth rotation in the source */
50            animation: rotate 1s linear infinite;
51            
52            /* Slight glow to mimic the visual softness in the video */
53            filter: drop-shadow(0 0 1px rgba(255,255,255,0.5));
54        }
55
56        @keyframes rotate {
57            from {
58                transform: rotate(0deg);
59            }
60            to {
61                transform: rotate(360deg);
62            }
63        }
64    </style>
65</head>
66<body>
67
68    <div class="loader-container">
69        <div class="spinner"></div>
70    </div>
71
72</body>
73</html>