← back to 4 'counter rotation' effectscompare with ground truth →
model output
Claude Sonnet 4.6
4 'counter rotation' effects
A 0.74T 0.37
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>Rotating Grid Animation</title>
7<style>
8 * { margin: 0; padding: 0; box-sizing: border-box; }
9
10 body {
11 background-color: #1e1e1e;
12 width: 100vw;
13 height: 100vh;
14 overflow: hidden;
15 }
16
17 .container {
18 position: absolute;
19 top: 120px;
20 left: 145px;
21 width: 75px;
22 height: 75px;
23 animation: spin 2s linear infinite;
24 transform-origin: center center;
25 }
26
27 @keyframes spin {
28 from { transform: rotate(0deg); }
29 to { transform: rotate(360deg); }
30 }
31
32 .grid {
33 display: grid;
34 grid-template-columns: repeat(3, 22px);
35 grid-template-rows: repeat(3, 22px);
36 gap: 3px;
37 }
38
39 .cell {
40 width: 22px;
41 height: 22px;
42 border-radius: 5px;
43 }
44
45 /* Color pattern for 3x3 grid:
46 B R B
47 R W R
48 B R B
49 where B=blue, R=red, W=white
50 */
51 .blue { background-color: #1d5070; }
52 .red { background-color: #9b0030; }
53 .white { background-color: #e8e8e8; }
54</style>
55</head>
56<body>
57 <div class="container">
58 <div class="grid">
59 <div class="cell blue"></div>
60 <div class="cell red"></div>
61 <div class="cell blue"></div>
62 <div class="cell red"></div>
63 <div class="cell white"></div>
64 <div class="cell red"></div>
65 <div class="cell blue"></div>
66 <div class="cell red"></div>
67 <div class="cell blue"></div>
68 </div>
69 </div>
70</body>
71</html>