animation-shorthand-001-manual.html (1039B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Animations Test: animation shorthand</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"> 7 <meta name="flags" content="animated"> 8 <meta name="assert" content="Check that animation shorthand property accepts time 9 values for animation-duration and animation-delay in order."> 10 <style> 11 div { 12 animation: 10s 2s sample; 13 14 background-color: blue; 15 height: 100px; 16 width: 100px; 17 position: relative; 18 } 19 20 @keyframes sample { 21 from { 22 left: 150px; 23 } 24 to { 25 left: 0px; 26 } 27 } 28 </style> 29 <body> 30 <p> 31 Test passes if there is a filled blue square with 'Filler Text', 32 which starts staying left about 2 seconds, and then moves from right to left 33 and lasts for a span of 10 seconds. 34 </p> 35 <div>Filler Text</div> 36 </body>