Bootstrap 5 spinners indicate loading states in your application. This page covers 4 spinner patterns — border, grow, sizes and button loading states — each ready to copy into your project.
Quick Setup
Spinners need only Bootstrap 5 CSS:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"/>
Key Classes Reference
| Class | What It Does |
|---|---|
.spinner-border | Circular border spinning animation |
.spinner-border-sm | Small border spinner |
.spinner-grow | Pulsing grow animation |
.spinner-grow-sm | Small grow spinner |
.text-primary | Sets spinner color to blue |
.text-danger | Sets spinner color to red |
style="width:3rem;height:3rem" | Custom spinner size |
1. Bootstrap 5 Border Spinners
The default border spinner in all Bootstrap 5 color variants.
2. Bootstrap 5 Grow Spinners
Growing dot spinner using spinner-grow. A subtle pulsing animation alternative to the border spinner.
3. Bootstrap 5 Spinner Sizes
Spinners in small, default and large sizes. Use spinner-border-sm or custom width/height.
4. Bootstrap 5 Button Loading States
Buttons with spinners for loading states. Disable the button and show a spinner while processing.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.