Re: when do transitions occur?

On 16/09/2011, at 6:37 AM, Jennifer Yu wrote:

> Thanks for the responses Tab and David. I didn't realize that shorthands don't have a computed value since getComputedStyle seems to return a valid string for shorthands.
> And just for clarification regarding zero duration transitions and animations (since I seem to have trouble finding the previous discussion of it), 0 duration transitions should not throw events if the delay is also 0. If the delay is positive, 0 duration transitions should throw an event. 0 duration animations, on the other hand, should throw events. Are those statements accurate?

We get a *LOT* of requests from developers asking for transitionend events to fire all the time, even if the property didn't change. This could be a 0/0 duration delay, or setting a property to the same value.

The use case is generally wanting to run a bunch of animations on children before changing a parent. Think of something like a slide-show where the text might slide off the page before the transition to the next screen.

Any opinions on this?

We're concerned about performance impact. An alternative would be to write an API that allows you to query the current state of all transitions on an element (or subtree). That way you'd know what is active.


Received on Wednesday, 21 September 2011 20:18:56 UTC