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

Animation and inherit

From: Russ Shotts <rshotts@jasc.com>
Date: Wed, 12 Jul 2000 12:25:54 -0500
Message-ID: <E580CB8FBC72D211A94A00A0C9B57292019600F9@EXCHANGE_SERVER>
To: www-svg@w3.org


Section 19.2.9 of the spec states that animated attributes and properties
can be inherited by descendent elements.  What happens when an inherited
attribute is animated on a descendent?  What if 'inherit' is used as a
value?


    <g style="stroke-width:5; stroke:black; fill:none" >  

        <ellipse cx="300" cy="200" rx="100" ry="20" >
            <animate attributeName="stroke-width" to="10" dur="10s"
repeatCount="100"/>
        </ellipse>

        <ellipse cx="300" cy="400" rx="100" ry="20" >
            <animate attributeName="stroke-width" values="10; inherit; 20"
dur="10s" repeatCount="100"/>
        </ellipse>

    </g>



What if the attribute is also animated on the parent group?

    <g style="stroke-width:5; stroke:black; fill:none" >  
        <animate attributeName="stroke-width" values="5; 20; 5;" begin="5s"
dur="10s" repeatCount="100" additive="sum"/>

        <ellipse cx="300" cy="200" rx="100" ry="20" >
            <animate attributeName="stroke-width" to="10" dur="10s"
repeatCount="100"/>
        </ellipse>

        <ellipse cx="300" cy="400" rx="100" ry="20" >
            <animate attributeName="stroke-width" values="10; inherit; 20"
dur="10s" repeatCount="100"/>
        </ellipse>

    </g>


Thanks.

Russ Shotts
Senior Software Engineer
Jasc Software, Inc
Received on Wednesday, 12 July 2000 13:29:04 GMT

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