W3C home > Mailing lists > Public > www-style@w3.org > September 2011

when do transitions occur?

From: Jennifer Yu <Jennifer.Yu@microsoft.com>
Date: Wed, 14 Sep 2011 02:30:47 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <7EA00A307FAE3841A1E43869EF9D3BA910E7A0@TK5EX14MBXC284.redmond.corp.microsoft.com>
Hi folks,

I have a question around Transitions/Animations. When exactly do transitions/animations occur? I'm a bit unclear on this point. Do they occur if delay and duration are both 0s?

The wording in the spec ("By default the value is '0', meaning that the transition is immediate")  seems to suggest that a transition/animation does occur even if duration is 0s. Given that the initial value for transition-property is 'all', wouldn't that mean that on a page with no specified transitions, every single property change is causing events to be thrown?
And what happens when a shorthand property is changed and a transition is kicked off? Is it a single transition with 1 event thrown for the shorthand, or are the longhands transitioning with an event thrown for each? Or are they all transitioning, with 1 event thrown for the shorthand and an event thrown for each transitioning longhand?

It'd be much appreciated if you could please clarify when a transition/animation occurs.

Thanks!
Jen
Received on Wednesday, 14 September 2011 02:34:03 GMT

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