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.63T 0.19
compare with ground truth →
1<!DOCTYPE html>
2<html>
3<head>
4    <title>Animation</title>
5    <style>
6        body {
7            background-color: #000;
8            display: flex;
9            justify-content: center;
10            align-items: center;
11            height: 100vh;
12            margin: 0;
13        }
14        .dot {
15            position: absolute;
16            width: 10px;
17            height: 10px;
18            border-radius: 50%;
19            background-color: #ff0000;
20        }
21        #dot1 {
22            top: 50%;
23            left: 50%;
24            transform: translate(-50%, -50%);
25            animation: moveDot1 5s infinite;
26        }
27        #dot2 {
28            top: 50%;
29            left: 50%;
30            transform: translate(-50%, -50%);
31            animation: moveDot2 5s infinite;
32        }
33        @keyframes moveDot1 {
34            0% {
35                transform: translate(-50%, -50%) translateX(0);
36            }
37            50% {
38                transform: translate(-50%, -50%) translateX(20px);
39            }
40            100% {
41                transform: translate(-50%, -50%) translateX(0);
42            }
43        }
44        @keyframes moveDot2 {
45            0% {
46                transform: translate(-50%, -50%) translateX(0);
47            }
48            50% {
49                transform: translate(-50%, -50%) translateX(-20px);
50            }
51            100% {
52                transform: translate(-50%, -50%) translateX(0);
53            }
54        }
55    </style>
56</head>
57<body>
58    <div id="dot1" class="dot"></div>
59    <div id="dot2" class="dot" style="background-color: #ff0000; animation-delay: 0.1s;"></div>
60</body>
61</html>