Re: animate symbol

thanks for your suggestions, I'm not sure we understand each other on  
this.

the problem with using <g> is that it doesn't have x or y

I'd like to animate the viewbox directly, but other than through  
<use> i cant find a method...

regards

Jonathan Chetwynd



On 11 Jul 2007, at 10:07, Dr. Olaf Hoffmann wrote:

Directly? Why not to animate the viewBox element?
Maybe you have to set the property overflow to
something useful fitting to your intention.
If the first symbol has to remain constant, it is
possible to put the content of the symbol inside
a defs in a g element and reference this g element
in two symbols, one animated, one not, to reuse
the content.

Another way is to put the source code to be reused in an entity  
definition
in the 'doctype tag' and use this entity whereever you need it.
Of course for this method you need this, currently missing in your
example.

It is may be a simplification too, to use an animateTransform
for example on the use or a parent g element with scaling and or  
translation
(for translation animateMotion too) to get a similar effect with less
animation elements.

There are several methods to gain the same or a similar effect with
more or less source code or thinking or with different animation
elements and animations of different complexity, this may help
viewers having an incomplete animation support.

Received on Wednesday, 11 July 2007 09:48:17 UTC