W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: transitions vs. animations

From: Perry Smith <pedzsan@gmail.com>
Date: Wed, 7 Apr 2010 21:46:33 -0500
Cc: Håkon Wium Lie <howcome@opera.com>, "www-style@w3.org list" <www-style@w3.org>
Message-Id: <90D0C89B-A11F-426D-A30D-BDB87B1F3C0D@gmail.com>
To: Tab Atkins Jr. <jackalmage@gmail.com>

On Apr 7, 2010, at 8:00 PM, Tab Atkins Jr. wrote:

> On Wed, Apr 7, 2010 at 5:19 PM, Håkon Wium Lie <howcome@opera.com>  
> wrote:
>> Perry Smith wrote:
>>
>>  > > How would you like to fill in the empty boxes?:
>>  > >
>>  > >   http://people.opera.com/howcome/2010/ta/index.html
>>  >
>>  > For case 2b and 2c, I think Tab's ideas now work by adding the
>>  > animation to what I call the "unadorned" selector (i.e. the foo
>>  > selector in your example).  I believe you would want the "play-in"
>>  > concept so it plays when it transitions to that state but does not
>>  > play when the page is first drawn.
>>
>> I'd love to add a column with Tab's proposals. Anther tab, so to  
>> say :)
>
> 2b:
>
> foo:hover {
>  play-in: bounce 1s;
>  play-out: bounce 1s;
> }

I thought 2b would be:

foo {
   play-in: bounce 1s;
}

foo:hover {
   play-in: bounce 1s;
}

Are these two "roughly" equivalent or is there a difference?

Perry
Received on Thursday, 8 April 2010 02:47:07 GMT

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