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

Re: [css3-animations] animation-direction: reverse

From: Rik Cabanier <cabanier@gmail.com>
Date: Sun, 6 Nov 2011 11:48:18 -0800
Message-ID: <CAGN7qDCGaMWWUC5HP8qA9zKdbA1vtWSj37YTvFFCYCVm7-jCgA@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Lea Verou <leaverou@gmail.com>, www-style list <www-style@w3.org>
There already was a discussion on this about 6 months ago.
See: http://lists.w3.org/Archives/Public/www-style/2011May/0676.html

Rik

On Sun, Nov 6, 2011 at 11:27 AM, L. David Baron <dbaron@dbaron.org> wrote:

> On Sunday 2011-11-06 11:51 +0200, Lea Verou wrote:
> > Currently, animation-direction only accepts 2 values: normal and
> alternate.
> > http://dev.w3.org/csswg/css3-animations/#animation-direction
> >
> > I think it would be useful and quite easy for implementors to also
> > add "reverse" which would do the same as alternate for all
> > iterations, not only for even ones. It would help make animations
> > more reusable. For example, I had to use 2 different animations
> > here: http://jsfiddle.net/leaverou/zXPzY/
> > If animation-direction supported reverse, I would only have to use one.
> >
> > And it also helps make the syntax more symmetrical and thus, less
> > unexpected.
>
> It's easy enough to implement, if it's desirable and we have a good
> name for it (i.e., doesn't lead to confusion).
>
> However, I'd note that there's also a fourth value that may be
> desirable:  an opposite of 'alternate', which would go forwards on
> even iterations and reverse on odd iterations.  ('alternate' goes
> forwards on odd iterations and backwards on even ones.)  I suspect
> 'reverse-alternate' is not a very good name, though.
>
> -David
>
> --
> 𝄞   L. David Baron                         http://dbaron.org/   𝄂
> 𝄢   Mozilla                           http://www.mozilla.org/   𝄂
>
>
Received on Sunday, 6 November 2011 19:48:57 GMT

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