Utility classes
Utility classes — formerly helper classes to speed up your development process.
For faster mobile-friendly and responsive development, Bootstrap includes dozens of utility classes for showing, hiding, aligning, and spacing content.
Bootstrap utilitiesWe have added new utility classes in theme to speed up your development process. Checkout the list below:
Utility class name | Description | Available options |
---|---|---|
.text-primary-hover | Set text primary color on hover to all anchor tags under .text-primary-hover container. |
- |
.font-base | Apply font family base | - |
.font-heading | Apply font family heading | - |
.grayscale | To apply grayscale filter on image or any section. On hover it will change back to normal | - |
.zoom-hover | Scale zoom on hover with smooth transition | - |
.up-hover | Scale up on hover with smooth transition | - |
.zoom-# | Zoom elements by using this class | .zoom-1 |
.opacity-# | Set opacity to elements by using this class | .opacity-1 |
.z-index-# | Set z-index | .z-index-9 |
.z-index-n9 | Set z-index in negative | - |
.h-### | Height utilities. You can also set different height in different Screen sizes by combining with Screen sizes classes h-md-400 |
.h-300 |
.icon-sm, md, lg, and xl | Set icon box with fixed height and width |
.icon-sm |