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

Re: CSS Charter (Apple's Wishlist)

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 1 Apr 2008 09:06:18 -0700
Cc: "Nicholas C. Zakas" <html@nczonline.net>, www-style@w3.org
Message-Id: <DD572E75-D93E-4088-B64D-C0D54EF00F71@apple.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>


On Apr 1, 2008, at 8:45 AM, Daniel Glazman wrote:

>
> Nicholas C. Zakas wrote:
>
>> As a longtime fly-on-the-wall, take this opinion however you'd  
>> like: as a long-time web developer, animations and transitions seem  
>> like something that could work with CSS but not necessarily as part  
>> of it. The WebKit implementation seems to make some simplifying  
>> assumptions, such that you'd only want to animate one property at a  
>> time.
>
> I don't think so. If you set a transition on a given element for two
> properties and these properties are set together for instance  
> through a
> class assignment on that element, the two properties will transition
> together. Hyatt, can you confirm please ?

That is indeed how it works. The expected way to use transitions is  
"state based" where you can use class or pseudo-classes like :hover to  
animate the full transition from one state to another, including all  
properties. Additional CSS properties can give fine-grained control  
over which properties transition and how.

In addition, an element can have multiple transitions in effect at the  
same time (for example, if you add two classes, each of which set  
different properties, or if you poke individual properties directly  
through the CSSOM).

Regards,
Maciej
Received on Tuesday, 1 April 2008 16:07:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:03 GMT