fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. return 0;
  6. }
  7.  
Success #stdin #stdout 0.01s 5324KB
stdin
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>CSS Car Animation</title>
  <style>
    body {
      margin: 0;
      overflow: hidden;
      background: linear-gradient(to top, #444 60%, #87ceeb 60%);
    }

    .road {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 200px;
      background: #2c2c2c;
    }

    .lines {
      position: absolute;
      top: 90px;
      left: 0;
      width: 100%;
      height: 20px;
      background: repeating-linear-gradient(
        to right,
        transparent 0 40px,
        white 40px 60px
      );
      animation: moveLines 2s linear infinite;
    }

    @keyframes moveLines {
      from {
        background-position: 0 0;
      }
      to {
        background-position: -100px 0;
      }
    }

    .car {
      position: absolute;
      bottom: 50px;
      left: 100px;
      width: 100px;
      height: 50px;
      background: red;
      border-radius: 10px;
      box-shadow: 0 4px #000;
    }

    .wheel {
      position: absolute;
      bottom: -10px;
      width: 20px;
      height: 20px;
      background: black;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    .wheel.left {
      left: 10px;
    }

    .wheel.right {
      right: 10px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
  </style>
</head>
<body>

  <div class="road">
    <div class="lines"></div>
    <div class="car">
      <div class="wheel left"></div>
      <div class="wheel right"></div>
    </div>
  </div>

</body>
</html>
stdout
Standard output is empty