tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

use-element-animations.html (639B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>SVG Test: Independent CSS animations on svg:use instantiation and corresponding element</title>
      4 <link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElement">
      5 <link rel="match" href="use-element-transitions-ref.html">
      6 <style>
      7  use {
      8    font-size: 40px;
      9  }
     10  g {
     11    font-size: 120px;
     12  }
     13  @keyframes font-anim {
     14    0% { /* starts from computed font-size */ }
     15    100% { font-size: 80px; }
     16  }
     17  text {
     18    animation: font-anim 100s steps(2, start);
     19  }
     20 </style>
     21 <svg>
     22  <use id="use_elm" xlink:href="#tmpl" />
     23  <g id="g_elm">
     24    <text id="tmpl" x="10" y="100">Hello!</text>
     25  </g>
     26 </svg>