o3-2025-04-16· OpenAI
LMArena Human Preference 140K
Create a realistic rendition of our solar system using html, css and js. Make it…
- User
Create a realistic rendition of our solar system using html, css and js. Make it stunning! reply with one file.
- Assistant
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Stunning Solar System (pure HTML + CSS + JS)</title> <style> :root{ --star-bg: radial-gradient(2px 2px at 20% 40%, #fff 98%, transparent 100%), radial-gradient(1.5px 1.5px at 75% 80%, #fff 98%, transparent 100%), radial-gradient(1.5px 1.5px at 15% 75%, #fff 98%, transparent 100%), radial-gradient(2.5px 2.5px at 60% 30%, #fff 98%, transparent 100%), #090a0f; } /* ----- page / scenery ----- */ *{box-sizing:border-box;margin:0;padding:0} body{ font-family:system-ui, sans-serif; background:var(--star-bg); height:100vh; overflow:hidden; display:flex; align-items:center; justify-content:center; color:#fff; user-select:none; } h1{position:fixed;top:1rem;left:50%;transform:translateX(-50%);font-size:1.2rem;font-weight:400;letter-spacing:2px;text-transform:uppercase;color:#ffffff88} /* 3-D playground */ .universe{ position:relative; width:90vmin; height:90vmin; perspective:800px; } .galaxy{ position:relative; width:100%; height:100%; transform-style:preserve-3d; animation:slow-tilt 60s linear infinite alternate; } @keyframes slow-tilt{ from{transform:rotateX(15deg) rotateZ(0deg)} to {transform:rotateX(30deg) rotateZ(1turn)} } /* ----- the Sun ----- */ .sun{ position:absolute; top:50%;left:50%; width:60px;height:60px; margin:-30px; border-radius:50%; background:radial-gradient(circle at 30% 30%, #ffff9d 0%, #feb645 40%, #d36d00 100%); box-shadow:0 0 40px 15px #ffae00; } /* ----- generic orbit ring ----- */ .orbit{ position:absolute; top:50%;left:50%; border:1px dashed rgba(255,255,255,.15); border-radius:50%; transform-style:preserve-3d; /* animation is set inline from JS */ } /* ----- generic planet ----- */ .planet{ position:absolute; left:100%; /* rightmost point on the ring */ top:50%; transform:translate(-50%,-50%); border-radius:50%; box-shadow:0 0 6px 2px rgba(0,0,0,.4) inset; /* size / color come from JS */ cursor:pointer; } /* label that pops on hover */ .planet::after{ content:attr(data-name); position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:#0009; padding:2px 6px; border-radius:3px; font-size:11px; opacity:0; pointer-events:none; transition:.2s; white-space:nowrap; } .planet:hover::after{opacity:1;transform:translateX(-50%) translateY(-2px)} /* Saturn's fancy rings */ .planet.saturn::before{ content:''; position:absolute;inset:50%; width:190%;height:190%; margin:-95%; border-radius:50%; border:3px solid rgba(255,255,255,.35); transform:rotateX(67deg); pointer-events:none; } </style> </head> <body> <h1>Our Solar System</h1> <div class="universe"> <div class="galaxy" id="galaxy"> <div class="sun"></div> <!-- planets inserted by JS --> </div> </div> <script> /* ----------------------------- TWEAKABLE PLANET DATA ----------------------------- */ const planets = [ { name:"Mercury", color:"#b1b1b1", size:6, distance:40, orbit:10 }, { name:"Venus", color:"#e6d8ad", size:12, distance:60, orbit:18 }, { name:"Earth", color:"#5d93f1", size:12, distance:80, orbit:24 }, { name:"Mars", color:"#b55337", size:8, distance:100, orbit:45 }, { name:"Jupiter", color:"#d9c18c", size:25, distance:140, orbit:120}, { name:"Saturn", color:"#e7d09c", size:20, distance:180, orbit:180, ring:true}, { name:"Uranus", color:"#9cc6d9", size:14, distance:220, orbit:220}, { name:"Neptune", color:"#466fb3", size:14, distance:260, orbit:300} ]; const galaxy = document.getElementById('galaxy'); /* Helper to create elements */ function el(tag, cls){ const e = document.createElement(tag); if(cls) e.className = cls; return e; } /* Build each planet & its orbit */ planets.forEach(p=>{ const orbit = el('div','orbit '+p.name.toLowerCase()); const diameter = p.distance*2; orbit.style.width = diameter + 'px'; orbit.style.height = diameter + 'px'; orbit.style.marginLeft = -p.distance + 'px'; orbit.style.marginTop = -p.distance + 'px'; orbit.style.animation = `spin ${p.orbit}s linear infinite`; const planet = el('div','planet '+p.name.toLowerCase()); planet.style.width = p.size + 'px'; planet.style.height = p.size + 'px'; planet.style.background = `radial-gradient(circle at 30% 30%, ${lighten(p.color,40)} 0%, ${p.color} 60%, #000 100%)`; planet.setAttribute('data-name', p.name); if(p.ring){ planet.classList.add('saturn'); } orbit.appendChild(planet); galaxy.appendChild(orbit); }); /* Basic color lightener for planetary shading */ function lighten(hex,percent){ const num = parseInt(hex.replace('#',''),16), amt = Math.round(2.55*percent), R = (num >> 16) + amt, G = (num >> 8 & 0x00FF) + amt, B = (num & 0x0000FF) + amt; return '#' + ( 0x1000000 + (R<255?R<1?0:R:255)*0x10000 + (G<255?G<1?0:G:255)*0x100 + (B<255?B<1?0:B:255) ).toString(16).slice(1); } /* ----------------------------- Tiny Easter-egg: click a planet to pause / play its orbit ----------------------------- */ document.querySelectorAll('.planet').forEach(planet=>{ planet.addEventListener('click',e=>{ e.stopPropagation(); const ring = planet.parentElement; const running = getComputedStyle(ring).animationPlayState; ring.style.animationPlayState = running === 'running' ? 'paused' : 'running'; }); }); </script> </body> </html>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- gpt-4.1-mini-2025-04-14Compare side by side →
gemini-2.5-pro-preview-03-25Compare side by side →
gemini-2.5-pro-preview-03-25Compare side by side →
llama-4-maverick-03-26-experimentalCompare side by side →
gemini-2.0-flash-001Compare side by side →
claude-3-5-haiku-20241022Compare side by side →
gemini-2.0-flash-001Compare side by side →
gemini-2.5-flash-preview-04-17Compare side by side →
claude-3-5-haiku-20241022Compare side by side →