animation-fill-mode-001-manual.html (1310B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Animations Test: animation-fill-mode - none</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-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/#animation-fill-mode"> 9 <meta name="flags" content="animated"> 10 <meta name="assert" content="When animation-fill-mode is set to none, 11 animation has no effect when it is applied but not executing."> 12 <style> 13 div { 14 animation-name: sample; 15 animation-duration: 5s; 16 animation-fill-mode: none; 17 18 background-color: blue; 19 height: 100px; 20 width: 100px; 21 position: relative; 22 } 23 @keyframes sample { 24 from { 25 background-color: yellow; 26 } 27 to { 28 background-color: green; 29 } 30 } 31 </style> 32 <body> 33 <p> 34 Test passes if there is a filled color square with 'Filler Text', 35 whose color gradually changes in the order: YELLOW to GREEN. 36 After the animation is finished, the color goes back to BLUE. 37 </p> 38 <div>Filler Text</div> 39 </body>