W3C home > Mailing lists > Public > www-style@w3.org > January 2012

RE: [css3-animations] :animating or :transitioning pseudo-class

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Wed, 18 Jan 2012 01:44:49 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>, Jonathan Snook <jonathan@snook.ca>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F01782903401EDF@TK5EX14MBXC296.redmond.corp.microsoft.com>

[Tab Atkins Jr.:]
> I'm okay with something like this, but I'm curious about the use-cases.

Yes, use-cases would be very helpful here. 

If I didn't read this wrong it seems the general pattern is 'these properties 
should be set to these values but only when other properties of the element
are animating'.

If you're using :hover to trigger your transition then you don't need anything
special: just set those propertie in your :hover rule.

For other triggers - e.g. a scripted property update from a button click -
you can't really achieve that without mucking with the DOM e.g. make your button
also set an attribute to match some selector + catch the transitionend event to 
unset it. Which, given reasonable use-cases, does seem a pain.

Did I get this right?

Received on Wednesday, 18 January 2012 01:46:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:54 UTC