<svg style="display: none;" xmlns="http://www.w3.org/2000/svg">
  <symbol id="icon-refresh" viewBox="0 0 32 32">
    <path class="spinner" d="M32 12h-12l4.485-4.485c-2.267-2.266-5.28-3.515-8.485-3.515s-6.219 1.248-8.485 3.515c-2.266 2.267-3.515 5.28-3.515 8.485s1.248 6.219 3.515 8.485c2.267 2.266 5.28 3.515 8.485 3.515s6.219-1.248 8.485-3.515c0.189-0.189 0.371-0.384 0.546-0.583l3.010 2.634c-2.933 3.349-7.239 5.464-12.041 5.464-8.837 0-16-7.163-16-16s7.163-16 16-16c4.418 0 8.418 1.791 11.313 4.687l4.687-4.687v12z">
  </symbol>
</svg>


<svg class="icon">
  <use xlink:href="#icon-refresh"></use>
</svg>
body {
  background: #333;
  text-align: center;
  padding-top: 25px;
}

.icon {
  width: 100px;
  height: 100px;
  fill: orange;
  transform-origin: center center;
  animation: spin 1.5s linear infinite;
}

.spinner {
  
}

@keyframes spin { 
  to {
    transform: rotate(360deg); 
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.