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

Re: transitions vs. animations

From: Lars Gunther <gunther@keryx.se>
Date: Wed, 07 Apr 2010 23:04:24 +0200
Message-ID: <4BBCF358.8090307@keryx.se>
To: "www-style@w3.org list" <www-style@w3.org>
2010-04-07 16:52, Tab Atkins Jr. skrev:
> The "play-in" and "play-during" I suggested are exactly the same as
> the current Animations draft - play-in animations are just finite
> iterations, while play-during are infinite.  There is no concept of
> "events" or "states" invented to handle them; they trigger purely
> through CSS values changing, exactly like the current Animations
> draft.  "play-out" is nothing more than the inverse of the "play-in"
> conditions.

The current wave of discussion started because there was a desire to 
simplify syntax. But now a whole new concept ("conditions") is invented 
because designers find scripting to hard? How is this simplifying anything?

Additionally I would like to know how that will work in this use case:

.foo {
     // some animation for "play-out"

.bar {
     // some animation for "play-in"

document.getElementsByClassName("foo")[0].className = "bar";

Which animation will play and why?

Lars Gunther
Received on Wednesday, 7 April 2010 21:04:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:44 UTC