animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to 4 'counter rotation' effects

model output

Qwen3-VL-8B-Instruct

4 'counter rotation' effects

A 0.41T 0.09
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>Animated Flower</title>
7<style>
8  body {
9    background-color: #000;
10    margin: 0;
11    padding: 0;
12    display: flex;
13    justify-content: flex-start;
14    align-items: flex-start;
15    overflow: hidden;
16  }
17  .flower {
18    position: absolute;
19    top: 20px;
20    left: 20px;
21    width: 60px;
22    height: 60px;
23    display: flex;
24    justify-content: center;
25    align-items: center;
26  }
27  .center {
28    width: 20px;
29    height: 20px;
30    background-color: white;
31    border-radius: 50%;
32    z-index: 10;
33  }
34  .petal {
35    position: absolute;
36    width: 20px;
37    height: 20px;
38    background-color: #007BFF;
39    border-radius: 50%;
40    transform-origin: center;
41    animation: rotate 4s linear infinite;
42  }
43  .petal:nth-child(1) { animation-delay: 0s; background-color: #007BFF; }
44  .petal:nth-child(2) { animation-delay: 0.5s; background-color: #DC3545; }
45  .petal:nth-child(3) { animation-delay: 1s; background-color: #007BFF; }
46  .petal:nth-child(4) { animation-delay: 1.5s; background-color: #DC3545; }
47  .petal:nth-child(5) { animation-delay: 2s; background-color: #007BFF; }
48  .petal:nth-child(6) { animation-delay: 2.5s; background-color: #DC3545; }
49  .petal:nth-child(7) { animation-delay: 3s; background-color: #007BFF; }
50  .petal:nth-child(8) { animation-delay: 3.5s; background-color: #DC3545; }
51  @keyframes rotate {
52    0% { transform: rotate(0deg); }
53    100% { transform: rotate(360deg); }
54  }
55</style>
56</head>
57<body>
58<div class="flower">
59  <div class="center"></div>
60  <div class="petal" style="transform: rotate(0deg);"></div>
61  <div class="petal" style="transform: rotate(45deg);"></div>
62  <div class="petal" style="transform: rotate(90deg);"></div>
63  <div class="petal" style="transform: rotate(135deg);"></div>
64  <div class="petal" style="transform: rotate(180deg);"></div>
65  <div class="petal" style="transform: rotate(225deg);"></div>
66  <div class="petal" style="transform: rotate(270deg);"></div>
67  <div class="petal" style="transform: rotate(315deg);"></div>
68</div>
69
70<script>
71  const petals = document.querySelectorAll('.petal');
72  const center = document.querySelector('.center');
73
74  // Start animation
75  setTimeout(() => {
76    petals.forEach((petal, index) => {
77      petal.style.animation = 'rotate 4s linear infinite';
78      petal.style.animationDelay = `${index * 0.5}s`;
79    });
80  }, 100);
81</script>
82</body>
83</html>