ScanSkill

opacity

The opacity defines the opacity level of an element.

Syntax

opacity: value;

opacity takes a value from 0 to 1 where 0 is completely transparent and 1 is fully opaque.

Example

        .div1 {
            opacity: 0;
        }

        .div2 {
            opacity: 0.5;
        }

        .div3 {
            opacity: 1;
        }
opacity

Property Values

value: sets the opacity of an element. ( 0 to 1 )