<Glazblog/>

Online poll, please answer

Comments

1. On Monday 20 October 2008, 16:22 by Benjamin D.C.

Les solutions actuelles en JS sont effectivement suffisantes pour créer aisément ce genre d'animations (et bien plus naturellement), mais pouvoir les réaliser en CSS apporte un confort indéniable (sans compter la réduction de poids!).

2. On Monday 20 October 2008, 16:38 by Laurens Holst

Ah, this poll looked very odd in the Thunderbird feed reader (which has JavaScript disabled). Oh, the blessings of AJAX.

But yes, yes I would like to see it as part of CSS. In fact I originally proposed it :).

http://lists.w3.org/Archives/Public...

3. On Monday 20 October 2008, 16:42 by Laurens Holst

Oh, sorry, it is about animations, not transitions! In that case, meh, I do not care for it much. Might as well use SMIL. Can I still change my vote?

4. On Monday 20 October 2008, 17:08 by Rik

I'd like to see this feature, but I don't know which solution is the best. No option for this answer in the poll.

5. On Monday 20 October 2008, 17:26 by Chris

You can only use SVG / SMIL to animate markup, not CSS. And vice versa for CSS animations.

Therefore the two solutions are not really competing, they do different things, and you need both.

6. On Monday 20 October 2008, 18:09 by Jean

Oui. Indispensable si on veut en finir avec Flash et autres clones propriétaires comme Air et Silverlight. Ce sont de petites “briques” simples qui permettront de construire beaucoup…

7. On Monday 20 October 2008, 19:41 by Ayin

Looks like <blink> on steroids :p

8. On Tuesday 21 October 2008, 00:57 by Robert O'Callahan

You can use SMIL to animate CSS.

9. On Tuesday 21 October 2008, 01:39 by dmp

We already incorporated some bits stolen from "transforms" and the "transitions" subset into zml.
I'm not a big fan of the coumpound syntax, but the ideas are good, this is clearly useful, and seems to me in line with the spirit of css.

On the other hand, the whole "CSSAnimations" shebang doesn't look right to me:

1. "selectors", IMHO a key css concept, is badly twisted. That "looks" like CSS, right, but also looks like shoehorning something that doesn't fit into a grammar not meant for that. I'm aware at-rules are not style rules, but still, that hurts the eyes :-)
2. Keyframes declarations as a whole are overkill: can't a more compact, possibly functional notation be used instead?
3. Transitions are ok. They express the way an object morphes when changing from a specific style state to another - fair.
Animations on the other hand completely override computed style from which they are entirely disconnected (meaning they will prove hard to use, or be purely gratuitous cycling bling bling).
4. doesn't look sane to implement (am I a sissy on this?): quote "In the case of multiple animations specifying behavior for the same property, the animation defined last will override the previously defined animations. " <- so, selector specificity is not the way to go for these, or is this bad phrasing assuming the case discussed is "with same specificity"? Headache ahead.

All in all: I'm probably too conservative with CSS "spirit" (I can live with that ;)), but I think the syntax is globally bad, and the idea not so much a good one, for a somewhat questionable result: if we are still talking about styling *documents*, then transitions *are good* (describing a path between two different style states, likely following user interaction), while animations looks to me like, yeah (useless) "<blink> on steroids".

I hope this was constructive - despite not being supportive.

Bahh, that's just me... bitching first, then just implement it next time I feel bored and got used to it :-)

10. On Tuesday 21 October 2008, 10:28 by Blair McBride

I'm not sure there is an "ideal" way of defining animations. So at the moment, I think that CSS based proposal is the best we've got (and possibly the best we're going to see for quite awhile). But either way, animation should stay separate from the semantic markup. And the best way of doing that, while keeping things nice and organized, is to put it in CSS.

11. On Tuesday 21 October 2008, 14:29 by voracity

There's something about this that makes me feel uneasy. I think it's because it looks like a new data format. First XML, then JSON, now CSSON?

12. On Wednesday 22 October 2008, 01:15 by pierre

The solution is tempting but conceptually the CSS Transitions and Animations are an ugly hack. They need a procedural more than a declarative language and forcing them into CSS makes the cascade a hindrance more than a property. Nothing is said about the synchronization between animations nor about the interactions with incremental reflow (should the browser restart the animations each time?) or cascade and scripts (which one takes precedence in calculating the computed values?). It also has the potential to mark the beginning of CSS as a kitchen sink of disparate protocols hidden under custom @rules and to delay the development of a better and proper solution for the animation of objects. Smells like a CSS <blink> tag to me.

13. On Thursday 23 October 2008, 07:42 by Robert O'Callahan

I think CSS transitions makes a lot of sense and is something we'll want to implement in Gecko. I'm much less sure about CSS animations.

14. On Thursday 23 October 2008, 18:31 by Da Scritch

I want correct table support before : http://dascritch.net/blog.php/post/...

15. On Tuesday 28 October 2008, 21:04 by Grauw

RoC: Well, that’s often a slightly confusing argument about SMIL; yes, SMIL can animate CSS properties. CSS transitions however allow you to specify styles in CSS in a declarative manner, as you would usually do, and indicate that the browser should move between them when they change. To my knowledge SMIL can not do that. CSS animations are a different beast though, and SMIL seems just fine for those.