OLD | NEW |
---|---|
(Empty) | |
1 | |
2 | |
3 Polymer({ | |
4 | |
5 is: 'scale-up-animation', | |
6 | |
7 behaviors: [ | |
8 Polymer.NeonAnimationBehavior | |
9 ], | |
10 | |
11 configure: function(config) { | |
12 var node = config.node; | |
13 | |
14 if (config.transformOrigin) { | |
15 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin ); | |
16 } | |
17 | |
18 this._effect = new KeyframeEffect(node, [ | |
19 {'transform': 'scale(0)'}, | |
20 {'transform': 'scale(1)'} | |
21 ], this.timingFromConfig(config)); | |
22 | |
23 return this._effect; | |
24 } | |
25 | |
26 }); | |
27 | |
OLD | NEW |