RGBA is extremely fun, and so is -webkit-gradient
, -moz-gradient
, and uh… progid:DXImageTransform.Microsoft.gradient
… yeah. 🙂
Is there a way to combine the two, RGBA and gradients, so that there's gradient of alpha transparency using the current/latest CSS specs.
Best Answer
Yes. You can use rgba in both webkit and moz gradient declarations:
(src)
(src)
Apparently you can even do this in IE, using an odd "extended hex" syntax. The first pair (in the example 55) refers to the level of opacity:
(src)