| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> | 9 --> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 * transformFrom: (string|undefined), | 46 * transformFrom: (string|undefined), |
| 47 * transformTo: (string|undefined), | 47 * transformTo: (string|undefined), |
| 48 * timing: (Object|undefined) | 48 * timing: (Object|undefined) |
| 49 * }} config | 49 * }} config |
| 50 */ | 50 */ |
| 51 configure: function(config) { | 51 configure: function(config) { |
| 52 var node = config.node; | 52 var node = config.node; |
| 53 var transformFrom = config.transformFrom || 'none'; | 53 var transformFrom = config.transformFrom || 'none'; |
| 54 var transformTo = config.transformTo || 'none'; | 54 var transformTo = config.transformTo || 'none'; |
| 55 | 55 |
| 56 if (config.transformOrigin) { | |
| 57 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin
); | |
| 58 } | |
| 59 | |
| 60 this._effect = new KeyframeEffect(node, [ | 56 this._effect = new KeyframeEffect(node, [ |
| 61 {'transform': transformFrom}, | 57 {'transform': transformFrom}, |
| 62 {'transform': transformTo} | 58 {'transform': transformTo} |
| 63 ], this.timingFromConfig(config)); | 59 ], this.timingFromConfig(config)); |
| 64 | 60 |
| 61 if (config.transformOrigin) { |
| 62 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin
); |
| 63 } |
| 64 |
| 65 return this._effect; | 65 return this._effect; |
| 66 } | 66 } |
| 67 | 67 |
| 68 }); | 68 }); |
| 69 | 69 |
| 70 </script> | 70 </script> |
| OLD | NEW |