title: How do I make a CSS Rotating Animation?
body: <p>I'm trying to make a css rotation animation that has different speeds at different degree points. </p>
  
  <p>Here is the animation I'm trying to make: </p>
  
  <p><a href="https://i.stack.imgur.com/GetEF.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GetEF.gif" alt="enter image description here"></a></p>
  
  <p><a href="https://codepen.io/imtrent/pen/dKYQgX" rel="nofollow noreferrer">Here is a Pen</a> of what I currently have and below is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>img {
    width: 125px;
  }
  
  body {
    text-align: center;
  }
  
  #loading {
    -webkit-animation: slow 1.5s linear 1.5s, fast 1s linear 1s, slow2 1s linear 1s;
    -webkit-animation-iteration-count: infinite;
  }
  
  @-webkit-keyframes slow {
    from {
      -webkit-transform: rotate(0deg)
    }
    to {
      -webkit-transform: rotate(90deg)
    }
  }
  
  @-webkit-keyframes fast {
    from {
      -webkit-transform: rotate(91deg)
    }
    to {
      -webkit-transform: rotate(270deg)
    }
  }
  
  @-webkit-keyframes slow2 {
    from {
      -webkit-transform: rotate(271deg)
    }
    to {
      -webkit-transform: rotate(359deg)
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;img id="loading" src="https://i.imgur.com/VpLRlbZ.png"&gt;</code></pre>
  </div>
  </div>
  </p>