W3C home > Mailing lists > Public > www-svg@w3.org > March 2004

Animation effect not cumulative if changed by Javascript

From: Rogério Dias Paulo <RDPaulo@SE.EFACEC.PT>
Date: Tue, 30 Mar 2004 15:08:10 +0100
Message-ID: <934536459C1DF0408EA45C61B7A01EED02685600@SENT5>
To: "'www-svg@w3.org'" <www-svg@w3.org>

Hi,

I am trying to change a rotate animation via javascript (see bellow), but
everytime the animateTransform "by" attribute is changed, the position of
the symbol is reset, This is not my intended behaviour, I would like to have
the rotational speed vary without glitches.
Does anyone have any ideas on how to solve this?

SVG:
		<g transform="rotate(0)">
			<use x="-60" y="-60" width="120" height="120"
xlink:href="#Symbol"/>
			<animateTransform id="anim" 
					attributeName="transform" 
					attributeType="XML"
                    		type="rotate" 
		                  dur="1s" 
            		      accumulate="sum"
		                  additive="sum" 
            		      repeatCount="indefinite" 
		                  fill="freeze"
                    />
		</g>

SCRIPT:
		svgDoc.getElementById("anim").setAttribute("by", byValue);


Thanks in advance,

Rogerio


PS - Using Adobe SVG Viewer 3 and IE 6 on XP
Received on Tuesday, 30 March 2004 09:12:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:55 GMT