Update Polymer and pull in iron-list
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / neon-animation / animations / transform-animation-extracted.js
blob048e3a142dc3973040950e2d92101165ec3a0b19
3   Polymer({
5     is: 'transform-animation',
7     behaviors: [
8       Polymer.NeonAnimationBehavior
9     ],
11     /**
12      * @param {{
13      *   node: !Element,
14      *   transformOrigin: (string|undefined),
15      *   transformFrom: (string|undefined),
16      *   transformTo: (string|undefined),
17      *   timing: (Object|undefined)
18      * }} config
19      */
20     configure: function(config) {
21       var node = config.node;
22       var transformFrom = config.transformFrom || 'none';
23       var transformTo = config.transformTo || 'none';
25       if (config.transformOrigin) {
26         this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin);
27       }
29       this._effect = new KeyframeEffect(node, [
30         {'transform': transformFrom},
31         {'transform': transformTo}
32       ], this.timingFromConfig(config));
34       return this._effect;
35     }
37   });