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

model output

LLaMA 4 Scout

Such Spinners, Much Loading

A 0.82T 0.38
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>Dot Animation</title>
7<style>
8  .dot {
9    position: absolute;
10    width: 10px;
11    height: 10px;
12    border-radius: 50%;
13    background-color: black;
14  }
15  #dot1 {
16    top: 50%;
17    left: 50%;
18    transform: translate(-50%, -50%);
19  }
20  #dot2 {
21    top: 50%;
22    left: 50%;
23    transform: translate(-50%, -50%);
24    opacity: 0;
25  }
26  .animate {
27    animation: move 2s linear infinite;
28  }
29  @keyframes move {
30    0% {
31      transform: translate(-50%, -50%) translateY(0);
32    }
33    50% {
34      transform: translate(-50%, -50%) translateY(-20px);
35    }
36    100% {
37      transform: translate(-50%, -50%) translateY(0);
38    }
39  }
40  .show {
41    opacity: 1;
42  }
43</style>
44</head>
45<body>
46
47<div id="dot1" class="dot animate"></div>
48<div id="dot2" class="dot"></div>
49
50<script>
51  // Simple JavaScript to toggle visibility or animate the second dot
52  const dot2 = document.getElementById('dot2');
53  setTimeout(() => {
54    dot2.classList.add('show');
55  }, 1000); // Assuming 1 second delay for demonstration
56
57  // To make the dots appear one after another, consider using GSAP or similar
58  // for more complex animations.
59
60  // For simplicity, let's make dot2 animate similarly
61  setTimeout(() => {
62    dot2.classList.add('animate');
63  }, 1500);
64</script>
65
66</body>
67</html>