OLD | NEW |
1 | 1 Polymer({ |
2 | 2 |
3 Polymer({ | |
4 | |
5 is: 'ripple-animation', | 3 is: 'ripple-animation', |
6 | 4 |
7 behaviors: [ | 5 behaviors: [ |
8 Polymer.NeonSharedElementAnimationBehavior | 6 Polymer.NeonSharedElementAnimationBehavior |
9 ], | 7 ], |
10 | 8 |
11 configure: function(config) { | 9 configure: function(config) { |
12 var shared = this.findSharedElements(config); | 10 var shared = this.findSharedElements(config); |
13 if (!shared) { | 11 if (!shared) { |
14 return null; | 12 return null; |
(...skipping 27 matching lines...) Expand all Loading... |
42 return this._effect; | 40 return this._effect; |
43 }, | 41 }, |
44 | 42 |
45 complete: function() { | 43 complete: function() { |
46 if (this.sharedElements) { | 44 if (this.sharedElements) { |
47 this.setPrefixedProperty(this.sharedElements.to, 'transformOrigin', ''); | 45 this.setPrefixedProperty(this.sharedElements.to, 'transformOrigin', ''); |
48 this.sharedElements.to.style.borderRadius = ''; | 46 this.sharedElements.to.style.borderRadius = ''; |
49 } | 47 } |
50 } | 48 } |
51 | 49 |
52 }); | 50 }); |
53 | |
OLD | NEW |