Update Polymer and pull in iron-list
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / neon-animation / animations / slide-left-animation-extracted.js
blob194884912c4b02d9e52c57743568ef74dde6abd2
3   Polymer({
5     is: 'slide-left-animation',
7     behaviors: [
8       Polymer.NeonAnimationBehavior
9     ],
11     configure: function(config) {
12       var node = config.node;
14       if (config.transformOrigin) {
15         this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin);
16       } else {
17         this.setPrefixedProperty(node, 'transformOrigin', '0 50%');
18       }
20       this._effect = new KeyframeEffect(node, [
21         {'transform': 'none'},
22         {'transform': 'translateX(-100%)'}
23       ], this.timingFromConfig(config));
25       return this._effect;
26     }
28   });