Skip to content
TheChatArchiveThe Chat Archive
o4-mini-2025-04-16· OpenAIHugging Face LMArena Human Preference 140K

Create a svg animation of spinning car

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with DeepSeekdeepseek-v3-0324’s answer.
  1. User

    Create a svg animation of spinning car

  2. Assistant

    Here’s a self-contained SVG that draws a simple car and continuously spins it around its center. You can just copy & paste this into an HTML file (or an .svg file) and view it in any modern browser.

    <svg
      xmlns="http://www.w3.org/2000/svg"
      width="300" height="300"
      viewBox="0 0 200 200"
    >
      <!-- Define a group for the car, centered at (100,100) -->
      <g id="car" transform="translate(100,100)">
        <!-- Spin animation around the group’s origin -->
        <animateTransform
          attributeName="transform"
          type="rotate"
          from="0"
          to="360"
          dur="4s"
          repeatCount="indefinite"
        />
    
        <!-- Car body -->
        <rect
          x="-60" y="-20"
          width="120" height="40"
          rx="8" ry="8"
          fill="#0074D9"
        />
    
        <!-- Windows -->
        <rect
          x="-40" y="-15"
          width="30" height="20"
          fill="#B0E0E6"
        />
        <rect
          x="10" y="-15"
          width="30" height="20"
          fill="#B0E0E6"
        />
    
        <!-- Wheels -->
        <circle
          cx="-30" cy="20"
          r="12"
          fill="#333"
          stroke="#555" stroke-width="3"
        />
        <circle
          cx="30" cy="20"
          r="12"
          fill="#333"
          stroke="#555" stroke-width="3"
        />
      </g>
    </svg>
    

    How it works:

    • We wrap all car shapes in a <g> translated to the center (100,100).
    • The <animateTransform> inside that group rotates it from 0° to 360° over 4 seconds, looping forever.
    • The car itself is built from a rounded rectangle (the body), two smaller rectangles (windows), and two circles (wheels).

    Feel free to tweak colors, speed (dur), or size (viewBox/width/height) to fit your needs! 🚗✨

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.