From the course: Bootstrap 4 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Spinners - Bootstrap Tutorial
From the course: Bootstrap 4 Essential Training
Spinners
- [Instructor] Spinners are a cool, new component that lets you give some feedback to the user when you need them to wait. The way that you create them is by creating a container that has a class of spinner and then the type of spinner that you want to use. There's two types, border and grow. So if you say spinner-border, it looks like a circle with a missing little notch that rotates. And if you use spinner-grow, it looks like a pulsating dot. In addition to that, you can also include an optional size. By default, they are a certain size and you can make them smaller by adding -sm at the end of spinner-border or spinner-grow. If you want to colorize the spinners, you can give them a text dash and then one of the contextual color classes, which are like primary, secondary and so on and so forth. So you just add like a text-primary class to the spinner and that makes it a specific colors. So let's take a look at how they work. Here, we have the code from the previous video, where I…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Interactive component overview1m 24s
-
(Locked)
Add tooltips7m 21s
-
(Locked)
Display popovers5m 20s
-
(Locked)
Create alerts4m 14s
-
(Locked)
Use dropdowns8m 15s
-
(Locked)
Add collapse accordions12m
-
(Locked)
Use modals12m 3s
-
(Locked)
Build carousels13m 37s
-
(Locked)
Use scrollspy6m 56s
-
(Locked)
Toasts6m 10s
-
(Locked)
Spinners5m 34s
-
(Locked)
Pagination3m 21s
-
(Locked)
Stretched links3m 11s
-
(Locked)
Embeds3m 9s
-
(Locked)
-