tor-browser

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

transition-timing-function-004-manual.html (1454B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Transitions Test: transition-timing-function - 'ease-in-out' equivalent to 'cubic-bezier(0.42, 0, 0.58, 1.0)'</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com">
      6 <link rel="help" href="https://www.w3.org/TR/css-transitions-1/#transition-timing-function-property">
      7 <meta name="assert" content="The 'transition-timing-function' property set 'ease-in-out' is equivalent to cubic-bezier(0.42, 0, 0.58, 1.0)">
      8 <style>
      9  div {
     10    height: 100px;
     11    transition: width 2s;
     12    width: 100px;
     13  }
     14  #test1 {
     15    background-color: blue;
     16    transition-timing-function: ease-in-out;
     17  }
     18  #test2 {
     19    background-color: yellow;
     20    transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1.0);
     21  }
     22 </style>
     23 <body>
     24  <p>Click the 'Start' button. Test passes if the width growth of blue square is <strong>equivalent</strong> to the yellow square.</p>
     25  <div id="test1"></div>
     26  <div id="test2"></div>
     27  <button>Start</button>
     28  <script>
     29    (function() {
     30      var button = document.querySelector("button");
     31      button.addEventListener("click", function(evt) {
     32        var test1 = document.querySelector("#test1"),
     33            test2 = document.querySelector("#test2");
     34        test1.setAttribute("style", "width: 300px");
     35        test2.setAttribute("style", "width: 300px");
     36      }, false);
     37    })();
     38  </script>
     39 </body>