← back to Simple Spinnercompare with ground truth →
model output
LLaMA 4 Scout
Simple Spinner
A 0.78T 0.17
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: red;
10 margin: 0;
11 display: flex;
12 justify-content: center;
13 align-items: center;
14 height: 100vh;
15 width: 100vw;
16 }
17 .square {
18 position: absolute;
19 }
20 </style>
21</head>
22<body>
23 <div class="square" id="square"></div>
24 <script>
25 let square = document.getElementById('square');
26 let colors = ['#0000ff', '#008000', '#ffa500', '#0080ff', '#964B00', '#ffff00', '#008000', '#ff0000', '#0000ff'];
27 let scaleValues = [1, 1, 1, 1, 1, 1, 1, 1, 1];
28 let duration = 1;
29 let delay = 1;
30 let timingFunction = 'ease-in-out';
31 let i = 0;
32 function animate() {
33 square.style.background = colors[i];
34 square.style.transform = `scale(${scaleValues[i]})`;
35 square.style.width = '50px';
36 square.style.height = '50px';
37 setTimeout(() => {
38 i = (i + 1) % colors.length;
39 animate();
40 }, duration * 1000);
41 }
42 animate();
43 </script>
44</body>
45</html>