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

Re: transitions vs. animations

From: Simon Fraser <smfr@me.com>
Date: Fri, 19 Mar 2010 16:41:06 -0700
Cc: www-style@w3.org
Message-id: <5F54694B-6771-4256-A630-2B52D884F5FC@me.com>
To: Håkon Wium Lie <howcome@opera.com>
On Mar 19, 2010, at 4:30 PM, Håkon Wium Lie wrote:

> Simon Fraser wrote:
> 
>>> A better reason for having two different specs/property-sets would be
>>> if it makes sense have both on the same element. I.e., are there
>>> any use cases where you would set both a transition and an animation
>>> on the same element?
>> 
>> Yes, you could easily run a transition on one property of an
>> element while animating another, or apply an animation while an
>> element is in the middle of a long transition.
> 
> Could you show an example?

Sure
<http://smfr.org/misc/animation-transition.html>

(try in Safari 4.0.5 or a WebKit nightly).

Simon
Received on Friday, 19 March 2010 23:41:47 GMT

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