Re: Animating SVG with CSS

Hello,

clearly, the CSS draft about animation is not applicable for SVG 1.x.
If there is an effect due to a feature of this draft, this is clearly a bug in
the related viewer ;o)

However, SVG mentions CSS properties, which apply to SVG, 
most of them available as attributes as well.
Typically one can animate those with declarative animation in SVG -
and for this type of animation one can select between animating
the attribute or the CSS property.
Therefore in SVG 1.x one can animate CSS properties using SVG,
but not the other way around. 

In the future (SVG 2 draft), maybe most attributes will have a corresponding
properties as well - and if the SVG 2 draft mentions, that CSS animations
apply, this might work in the future, at least if viewer do what will be 
recommended ;o)
Hoewever, due to the typical implemetation strategies, this might implicate
a lot of more bugs in viewers (suddenly they assume, that SVG 1.x attributes
can be properties as well, just because these exist in the SVG 2 draft)


Olaf

Received on Wednesday, 17 September 2014 11:26:38 UTC