Obracajace się kółko

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
    
    .circle {
      position: relative;
      margin: 20px;
      height: 120px;
      width: 120px;
      background-color: orange;
      border-radius: 50%;
    }
    .circle__spin {
      position: absolute;
      left: -10px;
      top: -10px;
      width: 140px;
      height: 140px;
    }
    .circle__spin svg {
      width: 100%;
      height: 100%;
      animation: spin 10s linear infinite;
    }
    .circle__spin circle {
      stroke-width: 5;
      stroke-dasharray: 120, 20;
      fill: none;
      stroke: orange;
    }
    @keyframes spin {
      100% {
        transform: rotate(360deg);
      }
    }
    </style>
  </head>
  <body>
    <div class="circle">
      <div class="circle__spin">
        <svg>
          <circle cx="50%" cy="50%" r="67px"></circle>
        </svg>
      </div>
    </div>
  </body>
</html>

LINK

Komentarze wyłączone