Spinners

Indicate the loading state of a component or page with Bootstrap spinners, built entirely with HTML, CSS, and no JavaScript.
Read the official Bootstrap Documentation for a full list of instructions and other options.


Border Spinner

Use the border spinners for a lightweight loading indicator. The border spinner uses currentColor for its border-color, meaning you can customize the color with text color utilities.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
<div class="spinner-border" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-primary" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-secondary" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-success" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-danger" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-warning" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-info" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-light" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-border text-dark" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
Class Value
class="spinner-border text-{value}" primary | secondary | success | danger | warning | info | light | dark

Growing Spinner

If you don’t fancy a border spinner, switch to the grow spinner. While it doesn’t technically spin, it does repeatedly grow!. Once again, this spinner is built with currentColor, so you can easily change its appearance with text color utilities.

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
<div class="spinner-grow" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-primary" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-secondary" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-success" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-danger" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-warning" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-info" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-light" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow text-dark" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
Class Value
class="spinner-grow text-{value}" primary | secondary | success | danger | warning | info | light | dark

Alignment

Spinners in Bootstrap are built with rems, currentColor, and display: inline-flex. This means they can easily be resized, recolored, and quickly aligned.

Margin

Use margin utilities like .m-5 for easy spacing.

Loading...
<div class="spinner-border m-5" role="status">
  <span class="visually-hidden">Loading...</span>
</div>

Placement

Use flexbox utilities, float utilities, or text alignment utilities to place spinners exactly where you need them in any situation.

Flex

Loading...
<div class="d-flex justify-content-center">
  <div class="spinner-border" role="status">
    <span class="visually-hidden">Loading...</span>
  </div>
</div>
Loading...
<div class="d-flex align-items-center">
  <span class="fw-medium">Loading...</span>
  <div class="spinner-border ms-auto" role="status" aria-hidden="true"></div>
</div>

Floats

Loading...
<div class="clearfix">
  <div class="spinner-border float-end" role="status">
    <span class="visually-hidden">Loading...</span>
  </div>
</div>

Text align

Loading...
<div class="text-center">
  <div class="spinner-border" role="status">
    <span class="visually-hidden">Loading...</span>
  </div>
</div>

Size

Default spinner class have medium size. Add .spinner-border-sm and .spinner-grow-sm to make a smaller spinner that can quickly be used within other components.

Add .spinner-border-lg and .spinner-grow-lg to make a large spinner that can quickly be used within other components.

Large
Loading...
Loading...
Medium
Loading...
Loading...
Small
Loading...
Loading...
 <div class="row">
   <!-- Large -->
   <div class="col-md p-4">
     <div class="text-light small fw-medium mb-3">Large</div>
     <div class="spinner-border spinner-border-lg text-primary" role="status">
     <span class="visually-hidden">Loading...</span>
     </div>
     <div class="spinner-border spinner-border-lg text-secondary" role="status">
     <span class="visually-hidden">Loading...</span>
     </div>
   </div>

   <!-- Medium -->
   <div class="col-md p-4">
     <div class="text-light small fw-medium mb-3">Medium</div>
     <div class="spinner-border text-primary" role="status">
     <span class="visually-hidden">Loading...</span>
     </div>
     <div class="spinner-border text-secondary" role="status">
     <span class="visually-hidden">Loading...</span>
     </div>
   </div>

   <!-- Small -->
   <div class="col-md p-4">
     <div class="text-light small fw-medium mb-3">Small</div>
     <div class="spinner-border spinner-border-sm text-primary" role="status">
     <span class="visually-hidden">Loading...</span>
     </div>
     <div class="spinner-border spinner-border-sm text-secondary" role="status">
     <span class="visually-hidden">Loading...</span>
     </div>
   </div>
  </div>

Or, use custom CSS or inline styles to change the dimensions as needed.

Loading...
Loading...
<div class="spinner-border" style="width: 3rem; height: 3rem;" role="status">
  <span class="visually-hidden">Loading...</span>
</div>
<div class="spinner-grow" style="width: 3rem; height: 3rem;" role="status">
  <span class="visually-hidden">Loading...</span>
</div>

Buttons

Use spinners within buttons to indicate an action is currently processing or taking place. You may also swap the text out of the spinner element and utilize button text as needed.

You can also use button sizes options.

<div class="demo-inline-spacing">
  <button class="btn btn-primary" type="button" disabled>
    <span class="spinner-border" role="status" aria-hidden="true"></span>
    <span class="visually-hidden">Loading...</span>
  </button>
  <button class="btn btn-primary" type="button" disabled>
    <span class="spinner-border me-1" role="status" aria-hidden="true"></span>
    Loading...
  </button>
  <button class="btn btn-primary" type="button" disabled>
    <span class="spinner-grow" role="status" aria-hidden="true"></span>
    <span class="visually-hidden">Loading...</span>
  </button>
  <button class="btn btn-primary" type="button" disabled>
    <span class="spinner-grow me-1" role="status" aria-hidden="true"></span>
    Loading...
  </button>
</div>

SpinKit

Simple loading spinners animated with CSS. See demo. SpinKit uses hardware accelerated (translate and opacity) CSS animations to create smooth and easily customizable animations.

Usage

In order to use SpinKit on your page, It is required to include the following vendors css in the "Vendors CSS" area from the page's header:

<link rel="stylesheet" href="assets/vendor/libs/spinkit/spinkit.css" />
<div class="row py-4">
  <div class="col">
    <!-- Plane -->
    <div class="sk-plane sk-primary"></div>
  </div>
  <div class="col">
    <!-- Chase -->
    <div class="sk-chase sk-primary">
      <div class="sk-chase-dot"></div>
      <div class="sk-chase-dot"></div>
      <div class="sk-chase-dot"></div>
      <div class="sk-chase-dot"></div>
      <div class="sk-chase-dot"></div>
      <div class="sk-chase-dot"></div>
    </div>
  </div>
  <div class="col">
    <!-- Bounce -->
    <div class="sk-bounce sk-primary">
      <div class="sk-bounce-dot"></div>
      <div class="sk-bounce-dot"></div>
    </div>
  </div>
  <div class="col">
    <!-- Wave -->
    <div class="sk-wave sk-primary">
      <div class="sk-wave-rect"></div>
      <div class="sk-wave-rect"></div>
      <div class="sk-wave-rect"></div>
      <div class="sk-wave-rect"></div>
      <div class="sk-wave-rect"></div>
    </div>
  </div>
</div>

<div class="row py-4">
  <div class="col">
    <!-- Pluse -->
    <div class="sk-pulse sk-primary"></div>
  </div>
  <div class="col">
    <!-- Swing -->
    <div class="sk-swing sk-primary">
      <div class="sk-swing-dot"></div>
      <div class="sk-swing-dot"></div>
    </div>
  </div>
  <div class="col">
    <!-- Circle -->
    <div class="sk-circle sk-primary">
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
      <div class="sk-circle-dot"></div>
    </div>
  </div>
  <div class="col">
    <!-- Circle Fade -->
    <div class="sk-circle-fade sk-primary">
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
      <div class="sk-circle-fade-dot"></div>
    </div>
  </div>
</div>

<div class="row py-4">
  <div class="col">
    <!-- Grid -->
    <div class="sk-grid sk-primary">
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
      <div class="sk-grid-cube"></div>
    </div>
  </div>
  <div class="col">
    <!-- Fold -->
    <div class="sk-fold sk-primary">
      <div class="sk-fold-cube"></div>
      <div class="sk-fold-cube"></div>
      <div class="sk-fold-cube"></div>
      <div class="sk-fold-cube"></div>
    </div>
  </div>
</div>
© 2017- Pixinvent, Hand-crafted & Made with ❤️