animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Camera following: Step8

model output

LLaMA 4 Scout

Camera following: Step8

A 0.48T 0.00
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            margin: 0;
10            background-color: #f0f0f0;
11            display: flex;
12            justify-content: center;
13            align-items: center;
14            height: 100vh;
15            overflow: hidden;
16        }
17        .balls {
18            position: relative;
19        }
20        .ball {
21            position: absolute;
22            width: 50px;
23            height: 50px;
24            border-radius: 50%;
25            background: linear-gradient(135deg, #7a288a 0%, #3c69a5 100%);
26            transition: transform 1s, left 1s, top 1s;
27        }
28    </style>
29</head>
30<body>
31    <div class="balls">
32        <div class="ball" style="left: 40%; top: 50%;"></div>
33        <div class="ball" style="left: 50%; top: 50%;"></div>
34        <div class="ball" style="left: 60%; top: 50%;"></div>
35    </div>
36
37    <script>
38        // Assuming the animation involves moving the balls in a sequence
39        // This script would handle complex animations or interactions
40        // For simplicity, let's assume we are just moving the balls
41        const balls = document.querySelectorAll('.ball');
42
43        // Example animation: Move the balls in a line
44        balls[0].style.left = '30%';
45        balls[1].style.left = '40%';
46        balls[2].style.left = '50%';
47
48        // Add more complex animation logic here if needed
49    </script>
50</body>
51</html>