tor-browser

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

animation-timing-function-007-manual.html (1522B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: animation-timing-function - step-start</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="reviewer" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2015-05-07 -->
      6 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-name">
      7 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-duration">
      8 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-fill-mode">
      9 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-timing-function">
     10 <meta name="flags" content="animated">
     11 <meta name="assert" content="When animation-timing-function is set to step-start,
     12                             animation will play the end effect at the start of the interval.">
     13 <style>
     14  div {
     15    height: 100px;
     16    width: 100px;
     17    position: absolute;
     18  }
     19 
     20  #test-step-start {
     21    animation-name: sample;
     22    animation-duration: 10s;
     23    animation-fill-mode: forwards;
     24    animation-timing-function: step-start;
     25 
     26    background-color: blue;
     27  }
     28 
     29  #ref-no-animation {
     30    background-color: red;
     31    left: 150px;
     32  }
     33 
     34  @keyframes sample {
     35    from {
     36      left: 0px;
     37    }
     38    to {
     39      left: 150px;
     40    }
     41  }
     42 </style>
     43 <body>
     44  <p>
     45    Test passes if there is a filled blue square with 'Filler Text',
     46    which stays right, and if there is NO red.
     47  </p>
     48  <div id="ref-no-animation"></div>
     49  <div id="test-step-start">Filler Text</div>
     50 </body>