tor-browser

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

animation-keyframes-003-manual.html (1323B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Animations Test: @keyframes - animation-timing-function</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-06 -->
      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/#keyframes">
      9 <meta name="flags" content="animated">
     10 <meta name="assert" content="Check that @keyframes rule accpets 'animation-timing-function'
     11                             property used as the animation moves to the next keyframe.">
     12 <style>
     13  div {
     14    animation-name: sample;
     15    animation-duration: 10s;
     16 
     17    background-color: blue;
     18    height: 100px;
     19    width: 100px;
     20    position: relative;
     21  }
     22 
     23  @keyframes sample {
     24    from {
     25      left: 150px;
     26      animation-timing-function: linear;
     27    }
     28    50% {
     29      left: 75px;
     30      animation-timing-function: linear;
     31    }
     32    to {
     33      left: 0px;
     34    }
     35  }
     36 </style>
     37 <body>
     38  <p>
     39    Test passes if there is a filled blue square with 'Filler Text',
     40    which starts moving from right to left with constant speed.
     41  </p>
     42  <div>Filler Text</div>
     43 </body>