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
http://keryx.se/
http://twitter.com/itpastorn/
http://itpastorn.blogspot.com/
Received on Wednesday, 7 April 2010 21:04:57 GMT

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