animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to flat loading animate

model output

Claude Sonnet 4.6

flat loading animate

A 0.95T 0.20
compare with ground truth →
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>Bouncing Ball</title>
7<style>
8  * {
9    margin: 0;
10    padding: 0;
11    box-sizing: border-box;
12  }
13
14  body {
15    background: white;
16    width: 100vw;
17    height: 100vh;
18    display: flex;
19    align-items: center;
20    justify-content: center;
21    overflow: hidden;
22  }
23
24  .ball {
25    width: 36px;
26    height: 36px;
27    background-color: #f95f5f;
28    border-radius: 50%;
29    animation: bounce 0.6s ease-in-out infinite alternate;
30  }
31
32  @keyframes bounce {
33    0% {
34      transform: translateY(-35px) scaleX(0.85) scaleY(1.15);
35    }
36    100% {
37      transform: translateY(35px) scaleX(1) scaleY(0.85);
38    }
39  }
40</style>
41</head>
42<body>
43  <div class="ball"></div>
44</body>
45</html>