loading

BS5 Spinners

Spinners

Use the .spinner-border class to build a spinner/loader:

==== Spinner MUKAVU ====

Example

				
					<div class="spinner-border"></div>
				
			

Colored Spinners

To add a color to the spinner, use any text color utility:

==== Spinner MUKAVU ====

Example

				
					<div class="spinner-border text-muted"></div>
<div class="spinner-border text-primary"></div>
<div class="spinner-border text-success"></div>
<div class="spinner-border text-info"></div>
<div class="spinner-border text-warning"></div>
<div class="spinner-border text-danger"></div>
<div class="spinner-border text-secondary"></div>
<div class="spinner-border text-dark"></div>
<div class="spinner-border text-light"></div>
				
			

Growing Spinners

In order to have the spinner/loader grow, use the .spinner-grow class rather than “spin”:

==== Spinner MUKAVU ====

Example

				
					<div class="spinner-grow text-muted"></div>
<div class="spinner-grow text-primary"></div>
<div class="spinner-grow text-success"></div>
<div class="spinner-grow text-info"></div>
<div class="spinner-grow text-warning"></div>
<div class="spinner-grow text-danger"></div>
<div class="spinner-grow text-secondary"></div>
<div class="spinner-grow text-dark"></div>
<div class="spinner-grow text-light"></div>
				
			

Spinner Size

To make a smaller spinner, use .spinner-border-sm or .spinner-grow-sm:

==== Spinner MUKAVU ====

Example

				
					<div class="spinner-border spinner-border-sm"></div>
<div class="spinner-grow spinner-grow-sm"></div>
				
			

Spinner Buttons

Additionally, spinners can be added to a button with or without text:

==== Spinner MUKAVU ====

Example

				
					<button class="btn btn-primary">
  <span class="spinner-border spinner-border-sm"></span>
</button>

<button class="btn btn-primary">
  <span class="spinner-border spinner-border-sm"></span>
  Loading..
</button>

<button class="btn btn-primary" disabled>
  <span class="spinner-border spinner-border-sm"></span>
  Loading..
</button>

<button class="btn btn-primary" disabled>
  <span class="spinner-grow spinner-grow-sm"></span>
  Loading..
</button>
				
			
Share this Doc

BS5 Spinners

Or copy link

Explore Topic