animation-timing-function-005-manual.html (1442B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Animations Test: animation-timing-function - ease-out</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-07 --> 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/#animation-timing-function"> 10 <meta name="flags" content="animated"> 11 <meta name="assert" content="Check that animation-timing-function is set to ease-out, 12 animation will start with higher (than the normal) speed 13 and relatively slow down as time progresses."> 14 <style> 15 div { 16 animation-name: sample; 17 animation-duration: 10s; 18 animation-timing-function: ease-out; 19 20 background-color: blue; 21 height: 100px; 22 width: 100px; 23 position: relative; 24 } 25 26 @keyframes sample { 27 from { 28 left: 150px; 29 } 30 to { 31 left: 0px; 32 } 33 } 34 </style> 35 <body> 36 <p> 37 Test passes if there is a filled blue square with 'Filler Text', 38 which starts moving from right to left; animation starts and relatively 39 slows down as time progresses. 40 </p> 41 <div>Filler Text</div> 42 </body>