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.73T 0.38
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           Background: Dark gray/black matching the video frames.
10           Layout: Center horizontally, offset from the top to match the video's composition.
11        */
12        body {
13            margin: 0;
14            padding: 0;
15            background-color: #171717;
16            display: flex;
17            justify-content: center;
18            align-items: flex-start;
19            padding-top: 60px;
20            height: 100vh;
21            overflow: hidden;
22        }
23
24        /* 
25           The spinner consists of two arcs on opposite sides.
26           Using border-left and border-right on a circular div creates the crescent effect.
27           The 'transparent' borders on top and bottom create the gaps.
28        */
29        .spinner {
30            width: 44px;
31            height: 44px;
32            border: 5px solid transparent;
33            border-left-color: #ffffff;
34            border-right-color: #ffffff;
35            border-radius: 50%;
36            
37            /* 
38               Based on the video timestamps:
39               00:00.000: Arcs are at 3 and 9 o'clock.
40               00:01.000: Arcs return to original orientation (180 deg rotation).
41               00:02.000: Full 360 degree rotation completed.
42               Timing: Linear, 2 seconds per full cycle.
43            */
44            animation: spin 2s linear infinite;
45            
46            /* Anti-aliasing optimization for smoother rotation */
47            -webkit-backface-visibility: hidden;
48            backface-visibility: hidden;
49        }
50
51        @keyframes spin {
52            0% {
53                transform: rotate(0deg);
54            }
55            100% {
56                transform: rotate(360deg);
57            }
58        }
59    </style>
60</head>
61<body>
62    <div class="spinner"></div>
63</body>
64</html>