Spinners

Classes Information

ClassNameDescription
spinner-simplesimple
spinner-circlecircle
spinner-dot-intermittentwith dots intermittent
spinner-pulse-dotpulse dot
spinner-ringring
spinner-wavewave
spinner-wave-dotwave dot
spinner-dot-circledot circle
spinner-primaryprimary color
spinner-secondarysecondary color
spinner-successsuccess color
spinner-errorerror color
spinner-warningwarning color
spinner-smsmall size
spinner-mdmedium size
spinner-lglarge size
spinner-xlextra large size

Basic Usage

Example Code

html
<div class="spinner-simple"></div>

Colors

Example Code

html
<div class="flex flex-row">
  <svg
    class="spinner-ring spinner-primary"
    viewBox="25 25 50 50"
    stroke-width="5"
  >
    <circle cx="50" cy="50" r="20" />
  </svg>

  <svg
    class="spinner-ring spinner-secondary"
    viewBox="25 25 50 50"
    stroke-width="5"
  >
    <circle cx="50" cy="50" r="20" />
  </svg>

  <svg
    class="spinner-ring spinner-success"
    viewBox="25 25 50 50"
    stroke-width="5"
  >
    <circle cx="50" cy="50" r="20" />
  </svg>

  <svg
    class="spinner-ring spinner-error"
    viewBox="25 25 50 50"
    stroke-width="5"
  >
    <circle cx="50" cy="50" r="20" />
  </svg>

  <svg
    class="spinner-ring spinner-warning"
    viewBox="25 25 50 50"
    stroke-width="5"
  >
    <circle cx="50" cy="50" r="20" />
  </svg>
</div>

Sizes

Example Code

html
<div class="flex flex-row">
  <svg class="spinner-ring spinner-primary spinner-sm" viewBox="25 25 50 50" stroke-width="5">
  <circle cx="50" cy="50" r="20" />
  </svg>
  
  <svg class="spinner-ring spinner-primary spinner-md" viewBox="25 25 50 50" stroke-width="5">
  <circle cx="50" cy="50" r="20" />
  </svg>

  <svg class="spinner-ring spinner-primary spinner-lg" viewBox="25 25 50 50" stroke-width="5">
  <circle cx="50" cy="50" r="20" />
  </svg>

  <svg class="spinner-ring spinner-primary spinner-xl" viewBox="25 25 50 50" stroke-width="5" >
  <circle cx="50" cy="50" r="20" />
  </svg>
</div>

Circle

Example Code

html
<!-- circle spiner -->
<div class="spinner-circle"></div>

<!-- Ring -->
<svg class="spinner-ring" viewBox="25 25 50 50" stroke-width="5">
  <circle cx="50" cy="50" r="20" />
</svg>

Dot

Example Code

html
<!-- Dot Intermitten  -->
<div class="spinner-dot-intermittent"></div>

<!-- Dot Pulse -->
<div class="spinner-dot-pulse">
  <div class="spinner-pulse-dot"></div>
</div>

<!-- Dot Wave  -->
<div class="spinner-wave">
  <div class="spinner-wave-dot"></div>
  <div class="spinner-wave-dot"></div>
  <div class="spinner-wave-dot"></div>
  <div class="spinner-wave-dot"></div>
</div>

<!-- Dot Circle  -->
<div class="spinner-dot-circle">
  <div class="spinner-dot"></div>
  <div class="spinner-dot"></div>
  <div class="spinner-dot"></div>
  <div class="spinner-dot"></div>
  <div class="spinner-dot"></div>
  <div class="spinner-dot"></div>
  <div class="spinner-dot"></div>
  <div class="spinner-dot"></div>
</div>