W3C home > Mailing lists > Public > www-style@w3.org > October 2009

[css3-transitions] When do transition property changes change already-running transitions?

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 30 Oct 2009 12:45:33 -0700
To: www-style@w3.org
Message-ID: <20091030194533.GA24815@pickering.dbaron.org>
The css3-transitions spec should answer the question of which
changes to the transition-* properties affect transitions that have
already started.

It seems highly impractical to start transitions for changes that
have already completed if the transition properties change such that
they would still be transition had the transition properties been
set that way when the change originally occurred.

This suggests that it might be best to ignore all dynamic changes to
transition-duration and transition-delay (and probably
transition-timing-function, although that's not as much of an
issue).

And it seems entirely reasonable, and probably most visually
desirable, to run transitions to completion on the same animation
function and timing that they started with.


However, authors sometimes want to stop currently running
transitions.  I think the solution here that imposes the least
inconsistency is the spec saying that running transitions should
stop if the 'transition-property' value changes such that the
property/element pair would no longer transition.  This appears to
be what WebKit does, and is what I plan to implement in Mozilla.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 30 October 2009 19:46:07 GMT

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