← back to CSS Spinnerscompare with ground truth →
model output
Claude Sonnet 4.6
CSS Spinners
A 0.89T 0.30
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>Loading Animation</title>
7<style>
8 * {
9 margin: 0;
10 padding: 0;
11 box-sizing: border-box;
12 }
13
14 body {
15 width: 100%;
16 height: 100vh;
17 background: white;
18 }
19
20 .top-section {
21 width: 100%;
22 height: 32%;
23 background-color: #e8431a;
24 display: flex;
25 align-items: center;
26 justify-content: center;
27 position: relative;
28 }
29
30 .spinner {
31 width: 30px;
32 height: 30px;
33 border: 3px solid transparent;
34 border-top-color: rgba(0,0,0,0.25);
35 border-right-color: rgba(0,0,0,0.25);
36 border-radius: 50%;
37 animation: spin 1s linear infinite;
38 position: absolute;
39 top: 50%;
40 left: 50%;
41 transform: translate(-50%, -50%);
42 }
43
44 @keyframes spin {
45 0% {
46 transform: translate(-50%, -50%) rotate(0deg);
47 }
48 100% {
49 transform: translate(-50%, -50%) rotate(360deg);
50 }
51 }
52</style>
53</head>
54<body>
55 <div class="top-section">
56 <div class="spinner"></div>
57 </div>
58</body>
59</html>