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

All > SVG > Animation > animation-add-BE-09


File: animation-add-BE-09
Author: Jon Ferraiolo
Origin: W3C SVG conformance suite

Rendered imageSVG source
ElementsAttributes
axlink:href |
animateaccumulate | additive | attributeName | begin | calcMode | dur | fill | from | repeatCount | to |
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="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
     <title id="test-title">animation-add-BE-09</title>
     <desc id="test-desc">Test 'additive' and 'accumulate' attributes.</desc>
     <g id="test-body-content">
          <text style="font-family:Helvetica;font-size:14;text-anchor:middle;" x="225" y="25">Test 'additive' and 'accumulate' attributes.</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="14">0,4 sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="29">4,8+ sec. </text>
                    <line x1="-10" y1="25" x2="20" y2="25" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="replace" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="100" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='replace'</text>
                    <text x="-15" y="115" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='none'</text>
               </g>
               <g transform="translate(185,60)">
                    <text x="-10" y="39">0,4 sec. </text>
                    <line x1="-10" y1="35" x2="20" y2="35" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="54">4,8+ sec. </text>
                    <line x1="-10" y1="50" x2="20" y2="50" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="sum" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="100" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='sum'</text>
                    <text x="-15" y="115" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='none'</text>
               </g>
               <g transform="translate(295,60)">
                    <text x="-10" y="14">0 sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="29">4 sec. </text>
                    <line x1="-10" y1="25" x2="20" y2="25" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="39">4 sec. </text>
                    <line x1="-10" y1="35" x2="20" y2="35" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="54">8+ sec. </text>
                    <line x1="-10" y1="50" x2="20" y2="50" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="replace" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="100" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='replace'</text>
                    <text x="-15" y="115" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='sum'</text>
               </g>
               <g transform="translate(405,60)">
                    <text x="-10" y="39">0 sec. </text>
                    <line x1="-10" y1="35" x2="20" y2="35" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="54">4 sec. </text>
                    <line x1="-10" y1="50" x2="20" y2="50" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="64">4 sec. </text>
                    <line x1="-10" y1="60" x2="20" y2="60" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="79">8+ sec. </text>
                    <line x1="-10" y1="75" x2="20" y2="75" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="sum" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="100" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='sum'</text>
                    <text x="-15" y="115" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='sum'</text>
               </g>
               <g transform="translate(75,220)">
                    <text x="-10" y="14">0,4 sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="29">4,8+ sec. </text>
                    <line x1="-10" y1="25" x2="20" y2="25" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="replace" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                         <animate attributeName="height" calcMode="discrete" additive="replace" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="140" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='replace'</text>
                    <text x="-15" y="155" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='none'</text>
               </g>
               <g transform="translate(185,220)">
                    <text x="-10" y="49">0,4 sec. </text>
                    <line x1="-10" y1="45" x2="20" y2="45" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="79">4,8+ sec. </text>
                    <line x1="-10" y1="75" x2="20" y2="75" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="sum" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                         <animate attributeName="height" calcMode="discrete" additive="sum" accumulate="none" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="140" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='sum'</text>
                    <text x="-15" y="155" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='none'</text>
               </g>
               <g transform="translate(295,220)">
                    <text x="-10" y="14">0 sec. </text>
                    <line x1="-10" y1="10" x2="20" y2="10" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="29">4 sec. </text>
                    <line x1="-10" y1="25" x2="20" y2="25" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="39">4 sec. </text>
                    <line x1="-10" y1="35" x2="20" y2="35" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="54">8+ sec. </text>
                    <line x1="-10" y1="50" x2="20" y2="50" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="replace" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                         <animate attributeName="height" calcMode="discrete" additive="replace" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="140" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='replace'</text>
                    <text x="-15" y="155" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='sum'</text>
               </g>
               <g transform="translate(405,220)">
                    <text x="-10" y="49">0 sec. </text>
                    <line x1="-10" y1="45" x2="20" y2="45" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="79">4 sec. </text>
                    <line x1="-10" y1="75" x2="20" y2="75" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="99">4 sec. </text>
                    <line x1="-10" y1="95" x2="20" y2="95" style="fill:none;stroke:#880000;"/>
                    <text x="-10" y="129">8+ sec. </text>
                    <line x1="-10" y1="125" x2="20" y2="125" style="fill:none;stroke:#880000;"/>
                    <rect x="0" y="0" width="20" height="25" style="fill:#44FFAA;stroke:#008888;stroke-width:4;">
                         <animate attributeName="height" calcMode="discrete" additive="sum" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                         <animate attributeName="height" calcMode="discrete" additive="sum" accumulate="sum" repeatCount="2" from="10" to="25" begin="0s" dur="4s" fill="freeze"/>
                    </rect>
                    <text x="-15" y="140" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">additive='sum'</text>
                    <text x="-15" y="155" xml:space="default" style="text-anchor:middle;fill:red;font-size:12;">accumulate='sum'</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-add-BE-09</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>