ApplicationImpl cleanup, part 1:
[chromium-blink-merge.git] / third_party / polymer / v1_0 / components-chromium / neon-animation / animations / slide-from-left-animation-extracted.js
blob56cd846937c15e4c9ebf9833f1653f0fecf83622
3 Polymer({
5 is: 'slide-from-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%');
20 this._effect = new KeyframeEffect(node, [
21 {'transform': 'translateX(-100%)'},
22 {'transform': 'none'}
23 ], this.timingFromConfig(config));
25 return this._effect;
28 });