Spinners

The spinners are used to specify the loading state of a component or webpage. Bootstrap facilitates the various classes for creating different styles of spinners by modifying their appearance, size, and placement.

ClassDescription

Syntax

Border

Used to rotate the spinner  

.spinner-border

Grow

Used for growing spinners.

.spinner-grow

Margin

Adds margins to the spinners. 

.m-

value
Placement

Places spinners at different positions 

.d-flex

Size

 Changes the size of the spinners.

.spinner-border-sm|md|lg|xl

Example Code:

HTML
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
                content="width=device-width">
    <link href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
        rel="stylesheet">
</head>
<body>
    <h2 class="text-success text-center">
        w3wiki
    </h2>
    <h5 class="text-info text-center">
    Bootstrap Spinner Border
    </h4>
    <div class="d-flex justify-content-center">
        <div class="spinner-border text-secondary"
            role="status">
        </div>
        <span>Please Wait </span>
    </div>
    <br/>
    <h5 class="text-info text-center">
        Bootstrap Spinner Grow
    </h5>
    <div class="d-flex justify-content-center">
        <span>
            <h5>Processing</h5>
        </span>
        <div class="spinner-grow text-primary"
            role="status">
        </div>
    </div>
    <br/>
    <h5 class="text-info text-center">
        Spinner Placement using Bootstrap classes
    </h5>
    <br/>
    <h5 class=" text-center">
        Using the Text Placement Classes
    </h5>
    <div class="text-center">
        <div class="spinner-border m-5 " role="status">
        </div>
    </div>
    <h5 class="text-center">
        Using the Flex Box Classes
    </h5>
    <div class="d-flex justify-content-center">
        <div class="spinner-border" role="status">
        </div>
    </div>
</body>
</html>

Bootstrap Cheat Sheet – A Basic Guide to Bootstrap

Bootstrap is a free, open-source, potent CSS framework and toolkit used to create modern and responsive websites and web applications. It is the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites. Nowadays, websites are perfect for all browsers and all sizes of screens.

Similar Reads

What is Bootstrap Cheat Sheet?

A Bootstrap Cheat Sheet is a comprehensive, quick-reference guide that provides web developers with an easy way to access the various classes, components, and utilities available in the Bootstrap framework. It’s a valuable tool that can significantly enhance the efficiency and productivity of web development....

Forms

Bootstrap provides ready-to-use form styles, including input fields, checkboxes, radio buttons, and more. Easily create user-friendly forms with minimal effort....

Input Groups

Input Groups in Bootstrap are used to combine form controls with text, buttons, or other elements using input groups. Useful for search bars, currency inputs, and more....

Navbars

Design responsive navigation bars that adapt to different screen sizes. Customize menus, logos, and navigation links....

Alerts

Alerts provide contextual feedback messages for typical user actions with a handful of available and flexible alert messages. Alerts are available for any length of text, as well as an optional close button. There are eight types of alerts available in Bootstrap 5....

Badges

Badges are numerical indicators to highlight the number of items associated with a link or new or unread item. The class. badge within the element is used to create badges....

Breadcrumbs

Create breadcrumb trails to indicate the user’s location within a website’s hierarchy. Useful for navigation and context. It provides a backlink to each previous page the user navigates through....

Button

Bootstrap offers versatile button styles, sizes, and states. Use them for calls to action, form submissions, or toggling functionality. Bootstrap also provides classes that can be used for changing the state and size of buttons, and also, provides classes for applying toggle,checkbox, and radio buttons-like effects....

Button groups

Bootstrap allows us to group a series of buttons together in a single line vertically or horizontally(without spaces) using the button group class. These classes are as follows:...

Cards

A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options....

Carousel

Carousal is used in bootstrap to create slideshows of images on a website. It is used to cycle through a series of images and text. Significant parts of a carousal are:...

Grids

Bootstrap’s grid system allows up to 12 columns across the page. The grid system helps align page elements based on sequenced columns and rows. We use this column-based structure to place text, images, and functions in a consistent way throughout the design....

Pagination

Pagination is used to enable navigation between pages on a website. The pagination used in Bootstrap has a large block of connected links that are hard to miss and easily scalable....

Dropdowns

Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They’re made interactive with the included Bootstrap dropdown JavaScript plugin....

List group

List Groups are used to display a series of content. We can modify them to support any content as per our needs. The use of List-Groups is just to display a series or list of content in an organized way....

Popovers

Popovers are used to display additional information about any element and are displayed with a click of a mouse pointer over that element....

Spinners

The spinners are used to specify the loading state of a component or webpage. Bootstrap facilitates the various classes for creating different styles of spinners by modifying their appearance, size, and placement....

Scroll Spy

Bootstrap Scrollspy targets the navigation bar contents automatically on scrolling the area. Scrollspy is used to update the navigation links when scrolling the page. The following attributes are added with the elements for the implementation of this feature....

Tooltips

A tooltip is quite useful for showing the description of different elements in the webpage. The tooltip can be invoked on any element in a webpage. Tooltips on bootstrap depend on the 3rd party library Tether for positioning. We can even customize this tooltip according to our requirements. Some of them are:...

Jumbotron

Bootstrap Jumbotron is a responsive component whose main goal is to draw the visitor’s attention or highlight a special piece of information. Inside a Jumbotron, you can make use of almost any other Bootstrap code to further increase its engagement value....

Toasts

Toast is used to create something like an alert box which is shown for a short time like a couple of seconds when something happens. Like when the user clicks on a button or submits a form and many other actions....

Modal

Modals are used to add dialogs to your site for lightboxes, user notifications, or completely custom content. Modals are built with HTML, CSS, and JavaScript. They’re positioned over everything else in the document and remove scroll from the so that modal content scrolls instead....

Borders

Borders are generally used to display an outline around a box or table cell or any other HTML element. In Bootstrap, there are different classes available to add or remove borders. The classes that are used to add borders are referred to as Additive classes and those that are used to remove borders are referred to as subtractive classes....

Benefits of Bootstrap Cheat Sheet

Efficient Web Development: A Bootstrap Cheat Sheet provides a quick reference guide for web developers, enabling faster and more efficient coding. It helps in reducing the time spent on searching for classes or components, thereby increasing productivity.Comprehensive Component Reference: The cheat sheet includes an extensive collection of Bootstrap components, classes, and utilities, covering everything from basic typography and buttons to complex components like modals and carousels. This makes it a valuable resource for both beginners and experienced developers.Responsive Design: With the inclusion of Bootstrap classes in the cheat sheet, developers can create more responsive and mobile-first web content. It aids in enhancing the user experience and engagement on web pages across different devices.Interoperability: Bootstrap is a popular front-end framework. A Bootstrap Cheat Sheet can be beneficial when working with other web technologies like HTML, CSS, JavaScript, and various web development frameworks.Optimized for Performance: A well-structured Bootstrap code using the correct classes and components can significantly improve the performance of web applications. The cheat sheet can guide developers in creating performance-optimized web pages.Consistency: Bootstrap provides a consistent framework that supports major of all browsers and CSS compatibility fixes. It’s also lightweight and customizable. The cheat sheet can guide developers in creating consistent and uniform web pages....

Contact Us