Skip to content

Button Library · Animation

Spin

The icon turns, the button stays still.

Use in Generator

States

  • Default

  • Hover

  • Active

  • Focus

Code

anim-spin.html

<button class="btn-anim-spin" type="button">
  <svg class="btn-anim-spin__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    <path d="M20 11a8 8 0 0 0-14-4L4 9"></path>
    <path d="M4 4v5h5"></path>
    <path d="M4 13a8 8 0 0 0 14 4l2-2"></path>
    <path d="M20 20v-5h-5"></path>
  </svg>
  <span>Syncing</span>
</button>

More in Animation