Zoomart Design - Web Agency Napoli

CSS3 Opacity

14 agosto 2010

Opacity rappresenta una delle funzioni CSS3 maggiormente implementate.
Ecco un esempio:

Ed il CSS utilizzato nel primo caso è:

background: rgb(255, 0, 0) ; opacity: 0.2;
background: rgb(255, 0, 0) ; opacity: 0.4;
background: rgb(255, 0, 0) ; opacity: 0.6;
background: rgb(255, 0, 0) ; opacity: 0.8;
background: rgb(255, 0, 0) ; opacity: 1;

Mentre nel secondo caso lo stesso risultato è ottenuto con valori RGB:

background-color: rgb(243,191,189);
background-color: rgb(246,143,142);
background-color: rgb(249,95,94);
background-color: rgb(252,47,47);
background-color: rgb(255,0,0);

Che ne pensi? Lascia un commento

* Campi obbligatori