W3C home > Mailing lists > Public > www-style@w3.org > November 2011

Re: [css3-animations][css3-transitions][css3-background] Animating box-shadow

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 3 Nov 2011 16:00:00 -0700
Message-ID: <CAAWBYDD4q__p7+DY+JVSoUGtTPMuGo=F1r48_VKcU=ix5MqJ=A@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Brian Manthos <brianman@microsoft.com>, www-style list <www-style@w3.org>
On Tue, Nov 1, 2011 at 5:04 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>> An example might help:
>> from { box-shadow: red 10px 10px; }
>> to { box-shadow: blue 40px 40px inset; }
>>
>> I think the preferred rendering is 20% outset and 80% inset (relative to time).  Further, I think #ff00ff should be used just before and just after the transition from outset to inset -- rather than at the 25px 25px inset location.
>
> I think I'd like to see it both ways before deciding (Maybe Tab could add it to his visualization tool). But my sense is that if #ff00ff is halfway between red and blue, then it should occur halfway through the animation. It wouldn't seem to hurt the visual illusion as much as not having distances zero out at the same time.

It's been added to the visualizer.  It doesn't appear to make much of
a difference which we choose in common scenarios - it's only really
detectable in cases like this, where the shadow split is 20/80 or
wider.

~TJ
Received on Thursday, 3 November 2011 23:00:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT