animation2code benchmark
For best compatibility, please view this dashboard in a Chrome browser.
← back to jiggle?

model output

Gemini 3 Flash Preview

jiggle?

A 0.88T 0.12
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>Egg Shape Animation</title>
7    <style>
8        /* 
9           CSS Analysis:
10           - Background: Absolute black (#000000).
11           - Shape: Centered white (#FFFFFF) egg-like ellipsoid.
12           - Shape Proportions: Height is approximately 1.3x the width.
13           - Egg Geometry: The top is slightly more tapered than the bottom.
14           - Animation: Based on the provided frames, the shape is static, 
15             but as it is an animation video of 5.5 seconds, a subtle 
16             breathing effect is applied to mimic a "living" UI element.
17        */
18
19        * {
20            margin: 0;
21            padding: 0;
22            box-sizing: border-box;
23        }
24
25        body {
26            background-color: #000;
27            display: flex;
28            justify-content: center;
29            align-items: center;
30            height: 100vh;
31            width: 100vw;
32            overflow: hidden;
33        }
34
35        .egg {
36            width: 110px;
37            height: 145px;
38            background-color: #fff;
39            
40            /* 
41               border-radius: horizontal-radii / vertical-radii 
42               By setting the vertical radii to be top-heavy (65% vs 35%), 
43               we create the classic tapered egg shape seen in the video.
44            */
45            border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
46            
47            /* 
48               Matching the timing of the video (5.5s). 
49               Ease-in-out ensures smooth transitions if looped.
50            */
51            animation: subtle-pulse 5.5s ease-in-out infinite;
52            
53            /* Box shadow to ensure clean edges on high-res displays */
54            box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
55        }
56
57        @keyframes subtle-pulse {
58            0%, 100% {
59                transform: scale(1);
60            }
61            50% {
62                /* 
63                   Extremely subtle scale change (0.5%) to maintain the 
64                   near-static appearance of the source frames while 
65                   satisfying the animation requirement.
66                */
67                transform: scale(1.005);
68            }
69        }
70
71        /* Responsive adjustment for small screens */
72        @media (max-width: 400px) {
73            .egg {
74                width: 80px;
75                height: 105px;
76            }
77        }
78    </style>
79</head>
80<body>
81    <!-- The central shape from the video -->
82    <div class="egg"></div>
83
84    <script>
85        // No JavaScript is required for this specific animation 
86        // as CSS keyframes handle the timing and transforms precisely.
87        // The animation runs for a duration of 5.5 seconds per cycle.
88    </script>
89</body>
90</html>