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

model output

Claude Sonnet 4.6

Simple Spinner

A 0.97T 0.65
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>Orbiting Dots</title>
7<style>
8  * {
9    margin: 0;
10    padding: 0;
11    box-sizing: border-box;
12  }
13
14  body {
15    background-color: #ff3d1a;
16    width: 100vw;
17    height: 100vh;
18    display: flex;
19    align-items: center;
20    justify-content: center;
21    overflow: hidden;
22  }
23
24  .orbit-container {
25    position: relative;
26    width: 0;
27    height: 0;
28    animation: rotate 1.2s linear infinite;
29  }
30
31  .dot {
32    position: absolute;
33    width: 10px;
34    height: 10px;
35    background: white;
36    border-radius: 50%;
37    transform: translate(-50%, -50%);
38  }
39
40  .dot1 {
41    left: -18px;
42    top: 0px;
43  }
44
45  .dot2 {
46    left: 18px;
47    top: 0px;
48  }
49
50  @keyframes rotate {
51    from {
52      transform: rotate(0deg);
53    }
54    to {
55      transform: rotate(360deg);
56    }
57  }
58</style>
59</head>
60<body>
61  <div class="orbit-container">
62    <div class="dot dot1"></div>
63    <div class="dot dot2"></div>
64  </div>
65</body>
66</html>