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

Re: Problem with "Animation"

From: Question <wanliyou@gmail.com>
Date: Thu, 31 May 2007 13:26:37 +0800
Message-ID: <41143d8f0705302226y517716aet2828eaaca5950e6c@mail.gmail.com>
To: www-svg@w3.org
Oops, Firefox does not support...

http://developer.mozilla.org/en/docs/SVG_in_Firefox_2.0#Element_implementation_status


On 5/31/07, Question <wanliyou@gmail.com> wrote:
>
> Hi,
>     As a newbie, I'm reading the docs in http://www.w3.org/TR/SVG11/
>     I see an example as follows:
>
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
>   "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
> <svg width="8cm" height="3cm"  viewBox="0 0 800 300"
>      xmlns="http://www.w3.org/2000/svg" version="1.1">
>   <desc>Example anim01 - demonstrate animation elements</desc>
>   <rect x="1" y="1" width="798" height="298"
>         fill="none" stroke="blue" stroke-width="2" />
>   <!-- The following illustrates the use of the 'animate' element
>         to animate a rectangles x, y, and width attributes so that
>         the rectangle grows to ultimately fill the viewport. -->
>   <rect id="RectElement" x="300" y="100" width="300" height="100"
>         fill="rgb(255,255,0)"  >
>     <animate attributeName="x" attributeType="XML"
>              begin="0s" dur="9s" fill="freeze" from="300" to="0" />
>     <animate attributeName="y" attributeType="XML"
>              begin="0s" dur="9s" fill="freeze" from="100" to="0" />
>     <animate attributeName="width" attributeType="XML"
>              begin="0s" dur="9s" fill="freeze" from="300" to="800" />
>     <animate attributeName="height" attributeType="XML"
>              begin="0s" dur="9s" fill="freeze" from="100" to="300" />
>   </rect>
>   <!-- Set up a new user coordinate system so that
>         the text string's origin is at (0,0), allowing
>         rotation and scale relative to the new origin -->
>   <g transform="translate(100,100)" >
>     <!-- The following illustrates the use of the 'set', 'animateMotion',
>          'animateColor' and 'animateTransform' elements. The 'text' element
>          below starts off hidden (i.e., invisible). At 3 seconds, it:
>            * becomes visible
>            * continuously moves diagonally across the viewport
>            * changes color from blue to dark red
>            * rotates from -30 to zero degrees
>            * scales by a factor of three. -->
>     <text id="TextElement" x="0" y="0"
>           font-family="Verdana" font-size="35.27" visibility="hidden"  >
>       It's alive!
>       <set attributeName="visibility" attributeType="CSS" to="visible"
>            begin="3s" dur="6s" fill="freeze" />
>       <animateMotion path="M 0 0 L 100 100"
>            begin="3s" dur="6s" fill="freeze" />
>       <animateColor attributeName="fill" attributeType="CSS"
>            from="rgb(0,0,255)" to="rgb(128,0,0)"
>            begin="3s" dur="6s" fill="freeze" />
>       <animateTransform attributeName="transform" attributeType="XML"
>            type="rotate" from="-30" to="0"
>            begin="3s" dur="6s" fill="freeze" />
>       <animateTransform attributeName="transform" attributeType="XML"
>            type="scale" from="1" to="3" additive="sum"
>            begin="3s" dur="6s" fill="freeze" />
>     </text>
>   </g>
> </svg>
>
> The content displayed will changing, but I can't see.
> My browsers:
> FireFox 2.0.0.4
> SeaMonkey/1.1.1  Gecko/20070222
>
> So, anyone knows what's the problem?
>
> --
> //************************
>   * Never  Say Never
>   ************************//
>



-- 
//************************
  * Never  Say Never
  ************************//
Received on Thursday, 31 May 2007 23:41:46 GMT

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