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

All > SVG > Animation > animation-values-BE-07


File: animation-values-BE-07
Author: Jon Ferraiolo
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
animateattributeName | begin | by | dur | fill | from | to | values |
descid |
gid | style | transform | xml:space |
linestyle | x1 | x2 | y1 | y2 |
pathd | style |
rectheight | id | style | width | x | y |
svgheight | id | width |
textstyle | x | xml:space | 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-values-BE-07</title>
     <desc id="test-desc">Test 'from', 'by', 'to' and 'values'</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:14;text-anchor:middle;" x="225" y="25">Test 'from', 'by', 'to' and 'values'</text>
          <g xml:space="preserve" style="font-family:Helvetica;font-size:13.5;text-anchor:end;stroke-width:3;">
               <g transform="translate(75,60)">
                    <text x="-10" y="104">0-2 sec. </text>
                    <line x1="-10" y1="100" x2="20" y2="100" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="14">5+ sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="100" style="fill:#FFAA44;stroke:#FF00FF;stroke-width:4;">
                         <animate attributeName="height" from="100" to="10" begin="2s" dur="3s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="125" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">from='100' to='10'</text>
               </g>
               <g transform="translate(185,60)">
                    <text x="-10" y="104">0-2 sec. </text>
                    <line x1="-10" y1="100" x2="20" y2="100" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="14">5+ sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="100" style="fill:#FFAA44;stroke:#FF00FF;stroke-width:4;">
                         <animate attributeName="height" from="100" by="-90" begin="2s" dur="3s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="125" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">from='100' by='-90'</text>
               </g>
               <g transform="translate(295,60)">
                    <text x="-10" y="104">0-2 sec. </text>
                    <line x1="-10" y1="100" x2="20" y2="100" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="14">5+ sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="100" style="fill:#FFAA44;stroke:#FF00FF;stroke-width:4;">
                         <animate attributeName="height" by="-90" begin="2s" dur="3s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="125" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">by='-90'</text>
               </g>
               <g transform="translate(405,60)">
                    <text x="-10" y="104">0-2 sec. </text>
                    <line x1="-10" y1="100" x2="20" y2="100" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="14">5+ sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="100" style="fill:#FFAA44;stroke:#FF00FF;stroke-width:4;">
                         <animate attributeName="height" to="10" begin="2s" dur="3s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="125" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">to='10'</text>
               </g>
               <g transform="translate(75,220)">
                    <text x="-10" y="104">0-2 sec. </text>
                    <line x1="-10" y1="100" x2="20" y2="100" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="14">5+ sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="100" style="fill:#FFAA44;stroke:#FF00FF;stroke-width:4;">
                         <animate attributeName="height" values="100;10" begin="2s" dur="3s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="125" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">values='100;10'</text>
               </g>
               <g transform="translate(185,220)">
                    <text x="-10" y="104">0-2 sec. </text>
                    <line x1="-10" y1="100" x2="20" y2="100" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="14">5+ sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="100" style="fill:#FFAA44;stroke:#FF00FF;stroke-width:4;">
                         <animate attributeName="height" values="100;70;40;10" begin="2s" dur="3s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="125" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">values='100;70;40;10'</text>
               </g>
          </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-values-BE-07</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