[css3-transitions] animation of shadows

View: New views
3 Messages — Rating Filter:   Alert me  

[css3-transitions] animation of shadows

by L. David Baron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.w3.org/csswg/css3-transitions/#animation-of-property-types-
currently says:
  # shadow: interpolated via the color, x, y and blur components
  # (treating them as color and numbers where appropriate).

However, properties with shadow values take lists of shadows.  I
presume the intent is to be like gradients and only support
animation when there are the same number of shadows.  If that is the
case, I would suggest adding a sentence saying so, and also adding
text saying that each shadow in one list is animated to the
corresponding shadow in the other list.

-David

--
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/


Re: [css3-transitions] animation of shadows

by François REMY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

From: "L. David Baron" <dbaron@...>

> http://dev.w3.org/csswg/css3-transitions/#animation-of-property-types-
> currently says:
>  # shadow: interpolated via the color, x, y and blur components
>  # (treating them as color and numbers where appropriate).
>
> However, properties with shadow values take lists of shadows.  I
> presume the intent is to be like gradients and only support
> animation when there are the same number of shadows.  If that is the
> case, I would suggest adding a sentence saying so, and also adding
> text saying that each shadow in one list is animated to the
> corresponding shadow in the other list.

I agree. This is a applicable solution.

It's also possible to interpolate missing shadows using a 'transparent'
default sized shadow. It has the advantage to make the new shadow
appears (or the old dispear) smoothly.

Maybe we should ask the people who've wrotten the spec of shadows
to decide self which solution they want for this problem.


> -David
>
> --
> L. David Baron                                 http://dbaron.org/
> Mozilla Corporation                       http://www.mozilla.com/
>


Re: [css3-transitions] animation of shadows

by Dean Jackson-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 23/06/2009, at 11:40 AM, L. David Baron wrote:

> http://dev.w3.org/csswg/css3-transitions/#animation-of-property-types-
> currently says:
>  # shadow: interpolated via the color, x, y and blur components
>  # (treating them as color and numbers where appropriate).
>
> However, properties with shadow values take lists of shadows.  I
> presume the intent is to be like gradients and only support
> animation when there are the same number of shadows.  If that is the
> case, I would suggest adding a sentence saying so, and also adding
> text saying that each shadow in one list is animated to the
> corresponding shadow in the other list.

I've noted this.

An alternative would be (as François suggested) to fill the lists with  
default shadows (say zero offsets and blur, transparent black). WebKit  
implemented something like this but it can often look a little weird.

Dean