animation-delay-003-manual.html (1270B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Animations Test: animation-delay - 0s</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-03-18 --> 7 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-delay"> 8 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-name"> 9 <link rel="help" href="https://drafts.csswg.org/css-animations-1/#animation-duration"> 10 <meta name="flags" content="animated"> 11 <meta name="assert" content="When animation-delay is set to 0s (zero seconds), 12 animation will execute as soon as it is applied."> 13 <style> 14 div { 15 animation-name: sample; 16 animation-duration: 10s; 17 animation-delay: 0s; 18 19 background-color: blue; 20 height: 100px; 21 width: 100px; 22 position: relative; 23 } 24 25 @keyframes sample { 26 from { 27 left: 150px; 28 } 29 to { 30 left: 0px; 31 } 32 } 33 </style> 34 <body> 35 <p> 36 Test passes if there is a filled blue square with 'Filler Text', 37 which starts moving from right to left as soon as the page loads. 38 </p> 39 <div>Filler Text</div> 40 </body>