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

model output

LLaMA 4 Scout

CSS Spinners

A 0.67T 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, html {
9            margin: 0;
10            padding: 0;
11            width: 100%;
12            height: 100%;
13            overflow: hidden;
14            background-color: #fff;
15        }
16        .green-bar {
17            position: relative;
18            width: 100%;
19            height: 50%;
20            background-color: #008000;
21            transition: background-color 0.5s ease-in-out;
22        }
23        .circle {
24            position: absolute;
25            top: 50%;
26            left: 50%;
27            transform: translate(-50%, -50%);
28            width: 20px;
29            height: 20px;
30            border-radius: 50%;
31            border: 1px solid #000;
32            opacity: 0;
33            transition: opacity 0.5s ease-in-out;
34        }
35        .animate {
36            animation: appear 2s infinite;
37        }
38        @keyframes appear {
39            0% {
40                background-color: #008000;
41                opacity: 1;
42            }
43            50% {
44                background-color: #008000;
45                .circle {
46                    opacity: 1;
47                }
48            }
49            100% {
50                background-color: #008000;
51                .circle {
52                    opacity: 0;
53                }
54            }
55        }
56    </style>
57</head>
58<body>
59    <div class="green-bar">
60        <div class="circle"></div>
61    </div>
62    <script>
63        // No JavaScript needed for this animation
64    </script>
65</body>
66</html>