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

model output

LLaMA 4 Scout

Simple Spinner

A 0.59T 0.26
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>Animation</title>
7    <style>
8        body {
9            background-color: #6c5ce7;
10            display: flex;
11            justify-content: center;
12            align-items: center;
13            height: 100vh;
14            margin: 0;
15        }
16        .dot {
17            position: relative;
18        }
19        .circle {
20            position: absolute;
21            border-radius: 50%;
22            border: 2px solid #ffffff;
23            transform: translateX(50%);
24        }
25        .dot-circle {
26            position: absolute;
27            width: 10px;
28            height: 10px;
29            border-radius: 50%;
30        }
31    </style>
32</head>
33<body>
34    <div class="dot">
35        <div class="circle" style="top: 50%; left: 50%; border-color: #00ff00;"></div>
36        <div class="dot-circle" style="top: 50%; left: 50%; background-color: #00ff00; transform: translate(-50%, -50%);"></div>
37    </div>
38
39    <script>
40        let circle = document.querySelector('.circle');
41        let dot = document.querySelector('.dot-circle');
42        let colors = ['#0000ff', '#00ff00', '#008000', '#ffff00', '#ff0000', '#ff00ff', '#800000'];
43        let colorIndex = 0;
44
45        function animate() {
46            circle.style.borderColor = colors[colorIndex];
47            dot.style.background = colors[colorIndex];
48            colorIndex = (colorIndex + 1) % colors.length;
49            requestAnimationFrame(animate);
50        }
51
52        animate();
53    </script>
54</body>
55</html>