Update Polymer and pull in iron-list
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / neon-animation / animations / slide-down-animation-extracted.js
blobe711b409435742e86fa4b7870eda69cac07ec7f3
3   Polymer({
5     is: 'slide-down-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', '50% 0');
18       }
20       this._effect = new KeyframeEffect(node, [
21         {'transform': 'translateY(-100%)'},
22         {'transform': 'none'}
23       ], this.timingFromConfig(config));
25       return this._effect;
26     }
28   });