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

model output

Claude Sonnet 4.6

Single Element Spinner

A 0.94T 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>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: 100%;
17    height: 100vh;
18  }
19
20  .spinner {
21    position: absolute;
22    left: 213px;
23    top: 100px;
24    width: 30px;
25    height: 30px;
26    border: 2px solid transparent;
27    border-top-color: #00e5ff;
28    border-right-color: #00e5ff;
29    border-bottom-color: #00e5ff;
30    border-radius: 50%;
31    animation: spin 1s linear infinite;
32  }
33
34  @keyframes spin {
35    0% {
36      transform: rotate(0deg);
37    }
38    100% {
39      transform: rotate(360deg);
40    }
41  }
42</style>
43</head>
44<body>
45  <div class="spinner"></div>
46</body>
47</html>