shans / web-anim-js

This is an early version of the polyfill. For the most up-to-date version, please visit http://github.com/web-animations/web-animations-js
http://github.com/web-animations/web-animations-js
Apache License 2.0
14 stars 7 forks source link

Animatable proprieties #28

Open mirceapiturca opened 11 years ago

mirceapiturca commented 11 years ago

Hi, I am trying to create a simple background-color animation:

new Animation(document.querySelector(".doorSpacer"), { 'background-color': [ 'rgb(0,0,0)', 'rgb(255,255,255)' ] }, 2);

and it does not work.

Looked trough the web-anmation.js and noticed that only few props like transforms are supported. Will this be the case on the actual browser implementation or just the case for this shim?

Thank you.

Edit. I think that I should of posted this to https://github.com/web-animations/web-animations-js

shans commented 11 years ago

Hi,

Thanks for raising this issue. We do intend to support all properties animatable by CSS Transitions and Animations, as well as all attributes animatable via SVG, both in the browser and in the shim.

I've copied the issue across to https://github.com/web-animations/web-animations-js/issues/7, and hope to start adding support for some additional properties soon.

mirceapiturca commented 11 years ago

Hi, Great, thought so. I see that you had already added support for background-color. Thank you.