Re: transitions vs. animations

I wrote:

 >  > >  @animation bounce {
 >  > >    from { top: 0; }
 >  > >    33%  { top: -20px; }
 >  > >    66%  { top: 20px; }
 >  > >    to   { top: 0; }
 >  > >  }

 >  > You're trying to come up with a single syntax that encompasses the
 >  > functionality of transitions and animations. But in doing so you
 >  > are introducing a confusing mix of specifying property values in
 >  > two places: in the style rule, and in the @animation rule.
 > 
 > I'm confused. The @animation thing is in the current specifications,

To clarify slightly: it's called @keyframes in the current propopsal.
But same thing, same syntax.

  http://dev.w3.org/csswg/css3-animations/

Cheers,

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome

Received on Monday, 5 April 2010 21:08:44 UTC