animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Such Spinners, Much Loading

model output

LLaMA 4 Scout

Such Spinners, Much Loading

A 0.83T 0.30
compare with ground truth →
1<!DOCTYPE html>
2<html>
3<head>
4    <style>
5        body {
6            background-color: #fff;
7            margin: 0;
8            padding: 0;
9            overflow: hidden;
10        }
11        .dot {
12            position: absolute;
13            width: 20px;
14            height: 20px;
15            border-radius: 50%;
16            background-color: #000;
17            left: 50%;
18            top: 50%;
19            transform: translate(-50%, -50%);
20        }
21        .square {
22            position: absolute;
23            width: 20px;
24            height: 20px;
25            background-color: #000;
26            left: 50%;
27            top: 50%;
28            transform: translate(-50%, -50%) rotate(45deg);
29        }
30        @keyframes morph {
31            0% {
32                opacity: 1;
33                transform: translate(-50%, -50%) scale(1);
34            }
35            50% {
36                opacity: 1;
37                transform: translate(-50%, -50%) scale(1) rotate(45deg);
38            }
39            100% {
40                opacity: 1;
41                transform: translate(-50%, -50%) scale(1);
42            }
43        }
44        .animate {
45            animation: morph 2s infinite;
46        }
47    </style>
48</head>
49<body>
50    <div class="dot"></div>
51    <script>
52        let dot = document.querySelector('.dot');
53        let square = document.createElement('div');
54        square.classList.add('square');
55        document.body.appendChild(square);
56        let animate = () => {
57            dot.classList.remove('animate');
58            square.classList.remove('animate');
59            setTimeout(() => {
60                dot.classList.add('animate');
61                square.classList.add('animate');
62            }, 100);
63        }
64        animate();
65        setInterval(animate, 2000);
66    </script>
67</body>
68</html>