animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to Simple Spinner

model output

LLaMA 4 Scout

Simple Spinner

A 0.85T 0.17
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            background-color: #ff0000;
10            margin: 0;
11            display: flex;
12            justify-content: center;
13            align-items: center;
14            height: 100vh;
15            overflow: hidden;
16        }
17        .dot {
18            position: relative;
19            width: 10px;
20            height: 10px;
21            background-color: #ffffff;
22            border-radius: 50%;
23            animation: move 8s infinite;
24        }
25        .dot:nth-child(1) {
26            animation-delay: 0s;
27        }
28        .dot:nth-child(2) {
29            animation-delay: 2s;
30        }
31        @keyframes move {
32            0% {
33                transform: translateX(0);
34            }
35            25% {
36                transform: translateX(20px);
37            }
38            50% {
39                transform: translateX(0);
40            }
41            75% {
42                transform: translateX(-20px);
43            }
44            100% {
45                transform: translateX(0);
46            }
47        }
48    </style>
49</head>
50<body>
51    <div class="dot"></div>
52    <div class="dot"></div>
53</body>
54</html>