← back to 4 'counter rotation' effectscompare with ground truth →
model output
LLaMA 4 Scout
4 'counter rotation' effects
A 0.30T 0.23
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: black;
10 display: flex;
11 justify-content: center;
12 align-items: center;
13 height: 100vh;
14 margin: 0;
15 overflow: hidden;
16 }
17 .box-container {
18 position: relative;
19 }
20 .box {
21 position: absolute;
22 width: 20px;
23 height: 20px;
24 border-radius: 2px;
25 }
26 .box1 {
27 background-color: #3498db;
28 top: 0;
29 left: 0;
30 transform: translate(0, 0);
31 }
32 .box2 {
33 background-color: #e74c3c;
34 top: 0;
35 left: 20px;
36 transform: translate(0, 0);
37 }
38 .box3 {
39 background-color: #3498db;
40 top: 0;
41 left: 40px;
42 transform: translate(0, 0);
43 }
44 .box4 {
45 background-color: #e74c3c;
46 top: 20px;
47 left: 0;
48 transform: translate(0, 0);
49 }
50 .box5 {
51 background-color: white;
52 top: 20px;
53 left: 20px;
54 transform: translate(0, 0);
55 }
56 .box6 {
57 background-color: #3498db;
58 top: 20px;
59 left: 40px;
60 transform: translate(0, 0);
61 }
62 .box7 {
63 background-color: #e74c3c;
64 top: 40px;
65 left: 0;
66 transform: translate(0, 0);
67 }
68 .box8 {
69 background-color: #3498db;
70 top: 40px;
71 left: 20px;
72 transform: translate(0, 0);
73 }
74 .box9 {
75 background-color: #e74c3c;
76 top: 40px;
77 left: 40px;
78 transform: translate(0, 0);
79 }
80 @keyframes move {
81 0% {
82 transform: rotate(0deg);
83 }
84 100% {
85 transform: rotate(360deg);
86 }
87 }
88 .animate {
89 animation: move 2s linear infinite;
90 }
91 </style>
92</head>
93<body>
94 <div class="box-container">
95 <div class="box box1"></div>
96 <div class="box box2"></div>
97 <div class="box box3"></div>
98 <div class="box box4"></div>
99 <div class="box box5"></div>
100 <div class="box box6"></div>
101 <div class="box box7"></div>
102 <div class="box box8"></div>
103 <div class="box box9"></div>
104 </div>
105 <script>
106 // Get all box elements
107 const boxes = document.querySelectorAll('.box');
108
109 // Function to animate boxes
110 function animateBoxes() {
111 let angle = 0;
112 setInterval(() => {
113 angle += 10;
114 boxes.forEach((box, index) => {
115 let x = 50 + Math.cos(angle * Math.PI / 180) * 100;
116 let y = 50 + Math.sin(angle * Math.PI / 180) * 100;
117 box.style.top = `${y}px`;
118 box.style.left = `${x}px`;
119 box.style.transform = `translate(-50%, -50%)`;
120 });
121 }, 16); // 16ms = 60fps
122 }
123
124 // Start animation
125 animateBoxes();
126 </script>
127</body>
128</html>