Index: third_party/polymer/components/neon-animation/animations/slide-from-top-animation.html |
diff --git a/third_party/polymer/components/neon-animation/animations/slide-from-top-animation.html b/third_party/polymer/components/neon-animation/animations/slide-from-top-animation.html |
index 32920f06b89e001c271b653d053d5585710848e8..c0a4881128ac43f2feaa5998f40c476cbaa1edfd 100644 |
--- a/third_party/polymer/components/neon-animation/animations/slide-from-top-animation.html |
+++ b/third_party/polymer/components/neon-animation/animations/slide-from-top-animation.html |
@@ -40,17 +40,17 @@ Configuration: |
configure: function(config) { |
var node = config.node; |
+ this._effect = new KeyframeEffect(node, [ |
+ {'transform': 'translateY(-100%)'}, |
+ {'transform': 'translateY(0%)'} |
+ ], this.timingFromConfig(config)); |
+ |
if (config.transformOrigin) { |
this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin); |
} else { |
this.setPrefixedProperty(node, 'transformOrigin', '50% 0'); |
} |
- this._effect = new KeyframeEffect(node, [ |
- {'transform': 'translateY(-100%)'}, |
- {'transform': 'translateY(0%)'} |
- ], this.timingFromConfig(config)); |
- |
return this._effect; |
} |