← back to Loaders (WIP)compare with ground truth →
model output
Claude Sonnet 4.6
Loaders (WIP)
A 0.90T 0.27
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>Clock Animation</title>
7<style>
8 * { margin: 0; padding: 0; box-sizing: border-box; }
9
10 body {
11 background-color: #e8503a;
12 width: 100vw;
13 height: 100vh;
14 display: flex;
15 justify-content: center;
16 align-items: flex-start;
17 padding-top: 55px;
18 }
19
20 .clock {
21 position: relative;
22 width: 75px;
23 height: 75px;
24 }
25
26 .clock-face {
27 width: 75px;
28 height: 75px;
29 border: 2px solid white;
30 border-radius: 50%;
31 position: absolute;
32 top: 0;
33 left: 0;
34 }
35
36 .hand {
37 position: absolute;
38 bottom: 50%;
39 left: 50%;
40 transform-origin: bottom center;
41 background: white;
42 border-radius: 2px;
43 }
44
45 .minute-hand {
46 width: 1.5px;
47 height: 26px;
48 margin-left: -0.75px;
49 animation: minuteRotate 4s linear infinite;
50 }
51
52 .hour-hand {
53 width: 1.5px;
54 height: 18px;
55 margin-left: -0.75px;
56 animation: hourRotate 48s linear infinite;
57 }
58
59 @keyframes minuteRotate {
60 from { transform: rotate(0deg); }
61 to { transform: rotate(360deg); }
62 }
63
64 @keyframes hourRotate {
65 from { transform: rotate(0deg); }
66 to { transform: rotate(360deg); }
67 }
68</style>
69</head>
70<body>
71 <div class="clock">
72 <div class="clock-face"></div>
73 <div class="hand hour-hand"></div>
74 <div class="hand minute-hand"></div>
75 </div>
76
77 <script>
78 // Set initial rotation based on current time feel
79 // From frames: minute hand starts at 12 (0deg) and rotates clockwise
80 // Hour hand starts slightly offset
81 const minuteHand = document.querySelector('.minute-hand');
82 const hourHand = document.querySelector('.hour-hand');
83
84 // Start both hands at 12 o'clock position (pointing up)
85 // The animation handles the rotation from there
86 // Initial offset: minute starts at 0, hour starts at ~30deg (1 o'clock area)
87 minuteHand.style.animationDelay = '0s';
88 hourHand.style.animationDelay = '0s';
89 </script>
90</body>
91</html>