OLD | NEW |
| (Empty) |
1 <!-- | |
2 Copyright 2012 Google Inc. All Rights Reserved. | |
3 | |
4 Licensed under the Apache License, Version 2.0 (the "License"); | |
5 you may not use this file except in compliance with the License. | |
6 You may obtain a copy of the License at | |
7 | |
8 http://www.apache.org/licenses/LICENSE-2.0 | |
9 | |
10 Unless required by applicable law or agreed to in writing, software | |
11 distributed under the License is distributed on an "AS IS" BASIS, | |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 See the License for the specific language governing permissions and | |
14 limitations under the License. | |
15 --> | |
16 | |
17 <!DOCTYPE html><meta charset="UTF-8"> | |
18 <style> | |
19 #parent, #test { | |
20 height: 600px; | |
21 } | |
22 body { | |
23 margin: 0px; | |
24 } | |
25 </style> | |
26 <body> | |
27 <div id="parent" style='background:lightsteelblue'> | |
28 <div style='background:red' id='test'></div> | |
29 </div> | |
30 <script src="../bootstrap.js"></script> | |
31 <script> | |
32 "use strict"; | |
33 document.timeline.play(new Animation(document.querySelector('#test'), [ | |
34 {display: 'none'}, | |
35 {display: 'block'}, | |
36 {display: 'none'}, | |
37 {display: 'block'}, | |
38 {display: 'none'}, | |
39 {display: 'block'}, | |
40 {display: 'none'}, | |
41 ], {duration: 0.5 * 1000, fill: 'forwards'})); | |
42 </script> | |
OLD | NEW |