animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Tiny Single Element Loading Animations

model output

Claude Sonnet 4.6

Tiny Single Element Loading Animations

A 0.85T 0.30
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</title>
7<style>
8  * {
9    margin: 0;
10    padding: 0;
11    box-sizing: border-box;
12  }
13
14  body {
15    background: white;
16    width: 100vw;
17    height: 100vh;
18  }
19
20  .spinner {
21    position: absolute;
22    top: 40px;
23    left: 40px;
24    width: 20px;
25    height: 20px;
26    border: 2px solid rgba(0, 0, 0, 0.1);
27    border-top-color: rgba(0, 0, 0, 0.4);
28    border-radius: 50%;
29    animation: spin 1s linear infinite;
30  }
31
32  @keyframes spin {
33    0% {
34      transform: rotate(0deg);
35    }
36    100% {
37      transform: rotate(360deg);
38    }
39  }
40</style>
41</head>
42<body>
43  <div class="spinner"></div>
44</body>
45</html>