CSS opacity Property
CSS opacity Property
The opacity property is used to specify the opacity level for an element. It is also known as transparency-level. Its value of 1 is opaque at all, 0.5 is 50% see-through, and 0 is completely transparent.
Default Value:-
Its default value is 1.
Syntax:-
Its syntax is:- opacity: number | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
number | Specifies the opacity from 0.0 to 1.0. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |