animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Animated Radio Waves

model output

LLaMA 4 Scout

Animated Radio Waves

A 0.59T 0.15
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 Animation</title>
7    <style>
8        /* Styles for the loading animation */
9        .loading-dot {
10            position: relative;
11            width: 100px;
12            height: 20px;
13        }
14        .dot {
15            position: absolute;
16            top: 50%;
17            transform: translateY(-50%);
18            width: 10px;
19            height: 10px;
20            border-radius: 50%;
21            background-color: #000;
22            transition: all 0.5s ease-in-out;
23        }
24        .arc {
25            position: absolute;
26            top: 50%;
27            transform: translateY(-50%);
28            width: 20px;
29            height: 10px;
30            border-radius: 10px;
31            background-color: #ccc;
32            transition: all 0.5s ease-in-out;
33        }
34        .arc-1 {
35            left: 10px;
36            transform: rotate(0deg) translateX(0);
37        }
38        .arc-2 {
39            left: 35px;
40            transform: rotate(0deg) translateX(0);
41        }
42        .arc-3 {
43            left: 60px;
44            transform: rotate(0deg) translateX(0);
45        }
46        .arc-4 {
47            left: 85px;
48            transform: rotate(0deg) translateX(0);
49        }
50    </style>
51</head>
52<body>
53    <div class="loading-dot">
54        <div class="arc arc-1" style="background-color: #ccc; transform: rotate(0deg) translateX(0);"></div>
55        <div class="arc arc-2" style="background-color: #ccc; transform: rotate(0deg) translateX(0);"></div>
56        <div class="arc arc-3" style="background-color: #ccc; transform: rotate(0deg) translateX(0);"></div>
57        <div class="arc arc-4" style="background-color: #ccc; transform: rotate(0deg) translateX(0);"></div>
58        <div class="dot"></div>
59    </div>
60
61    <script>
62        // Get all arc elements
63        const arcs = document.querySelectorAll('.arc');
64
65        // Animate the arcs
66        let i = 0;
67        function animate() {
68            // Reset arc styles
69            arcs.forEach((arc, index) => {
70                arc.style.backgroundColor = '#ccc';
71                arc.style.transform = `rotate(0deg) translateX(0)`;
72            });
73
74            // Animate arcs
75            for (let j = 0; j < i; j++) {
76                arcs[j].style.backgroundColor = '#000';
77                arcs[j].style.transform = `rotate(${j * 45}deg) translateX(${j * 10}px)`;
78            }
79
80            // Update dot position
81            document.querySelector('.dot').style.left = `${i * 20}px`;
82
83            // Increment index
84            i = (i + 1) % 5;
85
86            // Request next frame
87            requestAnimationFrame(animate);
88        }
89
90        // Start animation
91        animate();
92    </script>
93</body>
94</html>