Introduction
CSS Classes
React Components
Cssville has 16 utility classes for opacity. Add one to an element's class attribute to set the property, for example opa-0. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-opa-0. Add -hover to the end to apply a class only on hover, as in opa-0-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| opa-* | opacity |
| Class name suffix | CSS properties value |
|---|---|
| *-0 | 0 |
| *-01 | 0.1 |
| *-02 | 0.2 |
| *-03 | 0.3 |
| *-04 | 0.4 |
| *-05 | 0.5 |
| *-06 | 0.6 |
| *-07 | 0.7 |
| *-08 | 0.8 |
| *-09 | 0.9 |
| *-1 | 1 |
| *-inherit | inherit |
| *-initial | initial |
| *-revert | revert |
| *-revert-layer | revert-layer |
| *-unset | unset |
.opa-0 {
opacity: 0;
}