tor-browser

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

animation-keyframes-001-manual.html (1407B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: @keyframes - from, to, percentage</title>
      4 <link rel="author" title="Nokia Inc." href="http://www.nokia.com">
      5 <link rel="author" title="Intel" href="http://www.intel.com">
      6 <link rel="reviewer" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2015-05-06 -->
      7 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-name">
      8 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-duration">
      9 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#keyframes">
     10 <meta name="flags" content="animated">
     11 <meta name="assert" content="Check that @keyframes rule accepts 'from' and 'to'
     12                             keywords, and percentage values.">
     13 <style>
     14  div {
     15    animation-name: sample;
     16    animation-duration: 10s;
     17 
     18    background-color: blue;
     19    height: 100px;
     20    width: 100px;
     21  }
     22 
     23  @keyframes sample {
     24    from {
     25      background-color: blue;
     26    }
     27    30% {
     28      background-color: green;
     29    }
     30    65% {
     31      background-color: yellow;
     32    }
     33    to {
     34      background-color: blue;
     35    }
     36  }
     37 </style>
     38 <body>
     39  <p>
     40    Test passes if there is a filled blue square with 'Filler Text'
     41    initially on page load, and if the color of the square gradully changes
     42    in order: BLUE to GREEN to YELLOW and back to BLUE in 10 seconds.
     43  </p>
     44  <div>Filler Text</div>
     45 </body>