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

All > SVG > Animation > animation-href-BE-02


File: animation-href-BE-02
Author: Chris lilley
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
animateattributeName | attributeType | begin | dur | fill | from | id | to |
circlecx | cy | r |
defs
descid |
gid | style |
pathd | style |
rectheight | id | style | width | x | y |
styletype |
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-href-BE-02</title>
     <desc id="test-desc">See if animation, tiggered by links, works.</desc>
     <g id="test-body-content">
          <defs>
               <style type="text/css"> circle { stroke:black; stroke-width:4; fill:white; fill-opacity: 0.5 } #buttons text { fill: white; font-weight: bold } </style>
          </defs>
          <circle cx="100" cy="200" r="60"/>
          <rect id="pink" x="20" y="20" width="150" height="150" style="fill:red;opacity:0;">
               <animate id="fadein" attributeName="opacity" attributeType="CSS" from="0" to="1" begin="indefinite" dur="3s" fill="freeze"/>
               <animate id="fadeout" attributeName="opacity" attributeType="CSS" from="1" to="0" begin="indefinite" dur="3s" fill="freeze"/>
          </rect>
          <circle cx="200" cy="100" r="60"/>
          <g id="buttons">
               <a xlink:href="#fadein">
                    <rect x="300" y="300" width="80" height="30" style="fill:green;"/>
                    <text x="310" y="320">Fade in</text>
               </a>
               <a xlink:href="#fadeout">
                    <rect x="300" y="350" width="80" height="30" style="fill:maroon;"/>
                    <text x="310" y="370">Fade out</text>
               </a>
          </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-href-BE-02</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: Domain Names, VoIP Internettelefonie, DSL, SDSL, ADSL, UNLIMITED Web Hosting by HostDepartment, conference call service, answering service