![]() |
VOOZH | about |
Bootstrap 5 Spinners Size is used to create spinners in different sizes. For small-size spinners, we will use .spinner-border-sm class, and for small-size grow to shrink spinners, we will use .spinner-grow-sm class.
Spinners Size used Classes:
Note: We can use customized CSS styles for different-size spinners.
Syntax:
<div class="spinner-border spinner-border-sm"
role="status">
<span class="visually-hidden">Loading...</span>
</div>
Example 1: In this example, we will create different sizes of spinners.
Output:
Example 2: In this example, we will create different sizes of button spinners in different colors.
Output:
Reference:https://getbootstrap.com/docs/5.0/components/spinners/#size