Description

Currently, Bootstrap 4 does not have any opacity utility classes. You can add this to a custom stylesheet to quickly add the ability to write .opacity-(0-5) to change the opacity of an element.

  • 0 = opacity: 0;
  • 1 = opacity: 0.2;
  • 2 = opacity: 0.4;
  • 3 = opacity: 0.6;
  • 4 = opacity: 0.8;
  • 5 = opacity: 1;

HTML

CSS