W3C home > Mailing lists > Public > www-svg@w3.org > July 2007

animate symbol

From: ~:'' ありがとうございました。 <j.chetwynd@btinternet.com>
Date: Wed, 11 Jul 2007 07:25:25 +0100
Message-Id: <3DDA45D2-5F5F-4B25-AB77-D51804AD3EF5@btinternet.com>
To: SVG List <www-svg@w3.org>

in the example below is there a way to change the width, height and y
of the symbol directly?
that is from within the symbol itself rather than from the <use>
referencing it.

more generally is there any way to reference one animate in a number
of elements for instance via id or #url but not script?

the intention in both these queries being to reduce duplication of
animate code when a number of elements all have identical animate
behaviour.

thanks once again

Jonathan Chetwynd

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">

<symbol id="circle3" viewBox="0 0 150 150" >
<rect x="0" y="0" width="150" height="150" fill="#ccc"/>
<circle cx="50" cy="45" r="15" fill="#f00" stroke="yellow" stroke-
width="0.3em">
<animate attributeName="r" from="5" to="40" dur="6s"
begin="1s" />
</circle>
</symbol>

<rect x="0" y="0" width="100%" height="100%" fill="#aaaaff"/>

<use xlink:href="#circle3" x="405" y="50" width="50" height="50">
<animate attributeName="y" from="50" to="500" dur="6s"
begin="1s" />
<animate attributeName="width" from="50" to="200" dur="6s"
begin="1s" />
<animate attributeName="height" from="50" to="200" dur="6s"
begin="1s" />

</use>

</svg>


__._,_.___
Messages in this topic (1)Reply (via web post) | Start a new topic
Messages | Files | Photos | Polls | Calendar
-----
To unsubscribe send a message to: svg-developers- 
unsubscribe@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my  
membership"
----

Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch  
format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Recent Activity
17
New Members
Visit Your Group
SPONSORED LINKS
Svg
Scalable vector graphics
Svg viewer
Svg tool
Svg graphic
Yahoo! Finance
It's Now Personal

Guides, news,

advice & more.

Yahoo! Groups
Real Food Group

Share recipes

and favorite meals.

New business?
Get new customers.

List your web site

in Yahoo! Search.

.

__,_._,___
Received on Wednesday, 11 July 2007 06:26:01 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:37 GMT