Re: transitions vs. animations

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 UTC