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