Re: [CSS3-color] [css3-images] [css3-transitions] transparent transitions

On 01/12/2011 12:26 PM, Tab Atkins Jr. wrote:
>
> What you're seeing is the fact that transitions from opaque colors to
> transparent in non-premultiplied space get darker as they progress.
> Try doing a transition from opaque white to transparent over a white
> background, and you'll see it very clearly - you'll get an image that
> starts white, darkens to gray, and then lightens to white again.

Is there a way to avoid things like this? It seems to me that having
'transparent' mean 'transparent black' means you almost never get what
you want, which is the opacity fading without the color itself changing.
I think that's a common enough use case that it should be easy to do.

~fantasai

Received on Monday, 27 June 2011 17:47:17 UTC