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

Re: [css-animations] reverse animation-direction

From: Estelle Weyl <estelle@weyl.org>
Date: Sun, 22 May 2011 21:16:59 -0700
Cc: Gabriel Gilini <gabrielgilini@gmail.com>, Simon Fraser <smfr@me.com>, Rik Cabanier <cabanier@gmail.com>, "www-style@w3.org CSS" <www-style@w3.org>
Message-Id: <167019C1-890E-41CD-807F-0782F07BA106@weyl.org>
To: Dean Jackson <dino@apple.com>, cmarrin@apple.com, hyatt@apple.com

On May 5, 2011, at 4:47 PM, Dean Jackson wrote:

> 
> On 25/04/2011, at 9:29 PM, Gabriel Gilini wrote:
> 
>> 
>>>> On Tue, Apr 19, 2011 at 9:58 AM, Gabriel Gilini <gabrielgilini@gmail.com> wrote:
>>>> Hi.
>>>> 
>>>> I always missed a "reverse" value for the animation-direction property.
>>>> 
>>>> Sometimes you have a complex animation that will be applied to two different elements, but one of them should be in reverse. It just feels silly copying the whole animation and reversing the percentages to get the desired effect. So, a value named "reverse" would define that, for that rule, the animation should always run on reverse mode, from 100% to 0%.
>>> 
>>> You'd need 4 values for animation-direction if you were to do this (each combination of the existing 'alternate' and your 'reverse'):
>>> 
>>> normal
>>> alternate
>>> normal-reverse
>>> alternate-reverse
>> 
>> Indeed, that sounds perfect. 
>> 
>> So, no one else is interested on this one? It's a simple modification, but it just makes sense to add those, and it wouldn't break anything. 
> 
> I think this is ok and worth adding.
> 
> On a more general topic, the WG needs to decide if/when to publish a new draft and at what time we start locking down features so we can move towards CR. We now have two engines in the wild with a fairly good overlap.
> 
> Dean
> 
> 
The normal-reverse may be a bit confusing. I would recommend these four values:

normal -  the animation cycle iterations are always from 0% to 100%
reverse - the animation cycle iterations are always from 100% to 0%
alternate -  the animation cycle iterates from 0% to 100% on odd iterations and 100% to 0% on even iterations
alternate-reverse - the animation cycle iterates from 100% to 0% on odd iterations and 0% to 100% on even iterations

I think many, many people would like to see this added to the specification. I would have been able to use this in several of my projects. As it stands now, instead i have always written my keyframe declarations twice: once in normal order and once in reverse.

-Estelle
http://www.standardista.com
Received on Monday, 23 May 2011 04:17:53 GMT

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