- Home
- /
- Tutorials
- /
- CSS Tutorial
- /
- CSS Opacity
CSS Effects
CSS Opacity
The CSS Opacity property is used to control the transparency level of an element.
Opacity determines how visible or transparent an element appears on a webpage. The supporting concepts are explained in CSS Colors and Blending & Backdrop.
The opacity value ranges from:
0-> Completely transparent (invisible)1-> Fully visible (default)
Opacity is commonly used for:
- Image hover effects
- Overlays
- Background effects
- Modern UI designs
- Fade animations
Syntax
Opacity Syntax
css
selector {
opacity: value;
}