OLD | NEW |
1 | 1 Polymer({ |
2 | 2 |
3 Polymer({ | |
4 | |
5 is: 'fade-out-animation', | 3 is: 'fade-out-animation', |
6 | 4 |
7 behaviors: [ | 5 behaviors: [ |
8 Polymer.NeonAnimationBehavior | 6 Polymer.NeonAnimationBehavior |
9 ], | 7 ], |
10 | 8 |
11 configure: function(config) { | 9 configure: function(config) { |
12 var node = config.node; | 10 var node = config.node; |
13 this._effect = new KeyframeEffect(node, [ | 11 this._effect = new KeyframeEffect(node, [ |
14 {'opacity': '1'}, | 12 {'opacity': '1'}, |
15 {'opacity': '0'} | 13 {'opacity': '0'} |
16 ], this.timingFromConfig(config)); | 14 ], this.timingFromConfig(config)); |
17 return this._effect; | 15 return this._effect; |
18 } | 16 } |
19 | 17 |
20 }); | 18 }); |
21 | |
OLD | NEW |