animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Animated Concepts #3

model output

LLaMA 4 Scout

Animated Concepts #3

A 0.82T 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>Loading Animation</title>
7    <style>
8        body {
9            background-color: #000;
10            display: flex;
11            justify-content: center;
12            align-items: center;
13            height: 100vh;
14            margin: 0;
15            overflow: hidden;
16        }
17        .loader {
18            position: relative;
19            width: 50px;
20            height: 50px;
21        }
22        .loader-circle {
23            position: absolute;
24            top: 50%;
25            left: 50%;
26            transform: translate(-50%, -50%);
27            width: 100%;
28            height: 100%;
29            border-radius: 50%;
30            border: 2px solid #ff3737;
31        }
32        .loader-dot {
33            position: absolute;
34            top: 50%;
35            left: 50%;
36            transform: translate(-50%, -50%);
37            width: 10px;
38            height: 10px;
39            background-color: #ff3737;
40            border-radius: 50%;
41        }
42    </style>
43</head>
44<body>
45    <div class="loader">
46        <div class="loader-circle"></div>
47        <div class="loader-dot"></div>
48    </div>
49
50    <script>
51        const loaderCircle = document.querySelector('.loader-circle');
52        const loaderDot = document.querySelector('.loader-dot');
53        let angle = 0;
54
55        function animate() {
56            angle += 1;
57            if (angle > 360) angle = 0;
58            loaderDot.style.transform = `translate(-50%, -50%) translate(${25 * Math.cos(angle * Math.PI / 180)}px, ${25 * Math.sin(angle * Math.PI / 180)}px)`;
59            requestAnimationFrame(animate);
60        }
61
62        animate();
63    </script>
64</body>
65</html>