← back to Only CSS: Joint Animationcompare with ground truth →
model output
LLaMA 4 Scout
Only CSS: Joint Animation
A 0.70T 0.45
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 .bar {
9 position: absolute;
10 width: 100px;
11 height: 20px;
12 background-color: #0000ff;
13 transform-origin: top left;
14 transition: transform 1s;
15 }
16 .dot {
17 position: absolute;
18 top: 2px;
19 left: 2px;
20 width: 16px;
21 height: 16px;
22 background-color: #ffff00;
23 border-radius: 50%;
24 }
25 </style>
26</head>
27<body>
28 <div class="bar" style="left: 50px; top: 50px;">
29 <div class="dot"></div>
30 </div>
31
32 <script>
33 const bar = document.querySelector('.bar');
34 let angle = 0;
35
36 function animate() {
37 angle += 2;
38 if (angle > 360) {
39 angle = 0;
40 }
41 bar.style.transform = `rotate(${angle}deg)`;
42 requestAnimationFrame(animate);
43 }
44
45 animate();
46 </script>
47</body>
48</html>