Re: Interesting read about scriptless animation
Joe Doll <[email protected]>
| Newsgroups | gmane.text.xml.svg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi David,
I think if I use svg tags that the code will get through the E-mail
filter, so I will try again with svg tags.
This will not blink,
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.0"
width="744"
height="200"
id="svg_anm_atb_ctrl"
>
<set attributeName="opacity" id="sa_g2_0_f0" to="0" dur="6s"
begin="0s; sa_g2_0_f2.end"/>
<set attributeName="opacity" id="sa_g2_0_f2" to="1"
begin="6s; sa_g2_0_f0.end" dur="6s"/>
</svg>
I guess because it only uses the "Set" tag.
This will blink,
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.0"
width="744"
height="200"
id="svg_anm_atb_ctrl"
>
<set attributeName="opacity" id="sa_g2_0_f0" to="0" dur="6s"
begin="0s; scl_g2_0_f3.end"/>
<set attributeName="opacity" id="sa_g2_0_f2" to="1"
begin="6s; scl_g2_0_f3.end+6s" dur="6s"/>
<g id="scl_g2_0" parnt_nod="g2_0">
<use x="0" y="0" id="us_g2_0" width="1000" height="1000"
xlink:href="#g2_sprt"/>
<animateTransform attributeName="transform" attributeType="XML"
type="scale"
fill="remove" repeatCount="1"
begin="0s; scl_g2_0_f3.end" dur="6s" id="scl_g2_0_f0"
from="0.6" to="0.15"/>
<animateTransform attributeName="transform" attributeType="XML"
type="scale"
fill="remove" repeatCount="1"
begin="6s; scl_g2_0_f3.end+6s" dur="3s" id="scl_g2_0_f2"
bgn_scl_nmbr="0.15"
from="0.15" to="0.3" />
<animateTransform attributeName="transform" attributeType="XML"
type="scale"
fill="remove" repeatCount="1" begin="9s; scl_g2_0_f2.end" dur="3s"
id="scl_g2_0_f3" from="0.3" to="0.6" />
</g>
</svg>
because it references the "set" tags to the "animateTransform" tags.
In most languages, the creators make an attempt to be consistent with
how the language functions. In SVG, we have the same attributes working
differently depending on the owner tag. If "begin" and "end" work
differently in "animateTransform" than in "set", then that will be
confusing. It would be better to make them work the same or call them
something else.
Best Regards,
Joe
------------------------------------
-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/