dfilatov / vidom

Library to build UI based on virtual DOM
MIT License
415 stars 16 forks source link

transitions and animation #54

Closed ghost closed 9 years ago

ghost commented 9 years ago

lacking support for transitions and animation. Are this going to be supported?

dfilatov commented 9 years ago

What exactly do you mean by lacking support???

ghost commented 9 years ago

lacking = missing = not implemented into your code. You can't claim that - yes you are supporting css - and that is it. Transistions need event handlers attached to them etc. And this transitions events have different names in different browsers.

So how are you going to do animation? Like velocity etc?

dfilatov commented 9 years ago

You are able to use any animation library you like. vidom is not for dealing with animation, it is out of scope.

ghost commented 9 years ago

Ah okey. Because after what I know, CSS supporting declarativ animation such as transitions, etc. So if this is out of scope, you can\t claim you are supporting css either. Because this is a huge part of css.

dfilatov commented 9 years ago

Could provide any examples how other virtual libraries support animations and transitions?

ghost commented 9 years ago

https://github.com/ractivejs/ractive/tree/dev/src/virtualdom/items/Element/Transition

ghost commented 9 years ago

https://github.com/paldepind/snabbdom/blob/master/modules/hero.js

ghost commented 9 years ago

Good to know you wont fix this. But then again if people ask you if you support CSS, you can't claim that you do that. Or you need to put up info that you are only supporting 50% of CSS standards today.