Opacity
HC · Colors & Backgroundssyntax
opacity: 0 to 1;example
.disabled-card {
opacity: 0.5;
pointer-events: none;
}
.watermark {
opacity: 0.15;
}
.fade-in {
opacity: 0;
transition: opacity 0.3s ease;
}
.fade-in.visible {
opacity: 1;
}Note opacity affects the entire element and all its children. For transparent backgrounds only, use rgba or hsla with alpha instead. An element with opacity less than 1 creates a new stacking context.