Re: Interesting read about scriptless animation

Joe Doll <[email protected]>
Newsgroups gmane.text.xml.svg.devel
Message-ID <[email protected]>
Hi David,

I have noticed that when I code in SMIL that I have to break the tags 
into 2 categories, depending on whether they will cycle. By that I mean, 
rotate, skew, translate,  and scale will cycle, but all other SMIL tags 
will only cycle if they reference a tag that cycles. For example, if you 
try to use a set attribute on opacity to blink a light, the light will 
not blink unless you reference it to a tag that will cycle such as scale 
(<set> won't cycle). Is this by intent? If it is, then I wouldn't say 
that SMIL passes as a declarative language. You could call the animation 
tags declarative, or maybe you could call the other tags a declarative 
markup.

For example, this will not blink.

    <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"/>

But, this will blink.

     <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>


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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.