ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > SVG > Animation > animation-targAtt-BE-04


File: animation-targAtt-BE-04
Author: Jon Ferraiolo
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
animateattributeName | attributeType | begin | dur | fill | from | to |
circlecx | cy | r | style |
descid |
gid | style | xml:space |
linestyle | x1 | x2 | y1 | y2 |
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | y |
titleid |

Source

<svg id="svg-root" width="450" height="450" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" >
     <title id="test-title">animation-targAtt-BE-04</title>
     <desc id="test-desc">Test animation options for specifying the target attribute/property.</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:14;text-anchor:middle;" x="225" y="40">Test animation options for specifying the target attribute/property.</text>
          <g xml:space="preserve" style="font-family:Helvetica;font-size:14;text-anchor:end;stroke-width:3;">
               <text x="80" y="205">0-3 sec. </text>
               <line x1="80" y1="200" x2="200" y2="200" style="fill:none;stroke:green;"/>
               <text x="80" y="155">at 6 sec. </text>
               <line x1="80" y1="150" x2="200" y2="150" style="fill:none;stroke:green;"/>
               <rect id="rect1" x="100" y="100" width="100" height="100" style="fill:#FFFF00;stroke:#FF00FF;stroke-width:4;">
                    <animate attributeName="height" from="100" to="50" begin="3s" dur="3s" fill="freeze"/>
               </rect>
               <text x="305" y="205">0-6 sec. </text>
               <line x1="305" y1="200" x2="425" y2="200" style="fill:none;stroke:green;"/>
               <text x="305" y="155">at 9 sec. </text>
               <line x1="305" y1="150" x2="425" y2="150" style="fill:none;stroke:green;"/>
               <rect id="rect2" x="325" y="100" width="100" height="100" style="fill:#FFFF00;stroke:#FF00FF;stroke-width:4;">
                    <animate attributeName="height" attributeType="XML" from="100" to="50" begin="6s" dur="3s" fill="freeze"/>
               </rect>
          </g>
          <g style="font-family:Helvetica;font-size:14;text-anchor:middle;">
               <circle cx="40" cy="275" r="20" style="fill:none;stroke:black;stroke-width:6;"/>
               <text x="40" y="325">0-9 sec.</text>
               <circle cx="110" cy="275" r="20" style="fill:none;stroke:black;stroke-width:16;"/>
               <text x="110" y="325">at 12 sec.</text>
               <circle cx="180" cy="275" r="20" style="fill:none;stroke:#6666ff;stroke-width:6;">
                    <animate attributeName="stroke-width" from="6" to="16" begin="9s" dur="3s" fill="freeze"/>
               </circle>
               <text x="180" y="325">animation</text>
               <circle cx="265" cy="275" r="20" style="fill:none;stroke:black;stroke-width:6;"/>
               <text x="265" y="325">0-12 sec.</text>
               <circle cx="335" cy="275" r="20" style="fill:none;stroke:black;stroke-width:16;"/>
               <text x="335" y="325">at 15 sec.</text>
               <circle cx="405" cy="275" r="20" style="fill:none;stroke:#6666ff;stroke-width:6;">
                    <animate attributeName="stroke-width" attributeType="CSS" from="6" to="16" begin="12s" dur="3s" fill="freeze"/>
               </circle>
               <text x="405" y="325">animation</text>
          </g>
     </g>
     <g id="test-legend" style="fill:black;font-family:Helvetica;font-size:10;">
          <rect x="10" y="390" width="275" height="50" style="fill:none;stroke:#000000;"/>
          <path style="fill:none;stroke:#000000;" d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
          <text x="25" y="401">Scalable Vector Graphics (SVG) Conformance Suite</text>
          <a xlink:href="copyright-documents-19990405.html">
               <text x="12" y="437" style="fill:blue;">Copyright 2000 W3C. All Rights Reserved.</text>
          </a>
          <text style="font-size:12;" x="35" y="420">animation-targAtt-BE-04</text>
          <text style="font-size:10;" x="210" y="417">$Revision: 1.1 $</text>
          <text style="font-size:10;" x="210" y="435">Release 2.0</text>
          <rect id="test-frame" x="1" y="1" width="448" height="448" style="fill:none;stroke:#000000;"/>
     </g>
</svg>



Sponsored links: conference call service, VoIP Internettelefonie, DSL, SDSL, ADSL, answering service