Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: third_party/polymer/v1_0/components/neon-animation/animations/scale-up-animation.html

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components/neon-animation/animations/scale-up-animation.html
diff --git a/third_party/polymer/v1_0/components/neon-animation/animations/scale-up-animation.html b/third_party/polymer/v1_0/components/neon-animation/animations/scale-up-animation.html
index 43d3d46199076c3f217590df02df5bff24340a53..b5164f7fe1dc5231346cfdb4fea39d17e8b84c96 100644
--- a/third_party/polymer/v1_0/components/neon-animation/animations/scale-up-animation.html
+++ b/third_party/polymer/v1_0/components/neon-animation/animations/scale-up-animation.html
@@ -45,9 +45,16 @@ Configuration:
this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin);
}
+ var scaleProperty = 'scale(0)';
+ if (config.axis === 'x') {
+ scaleProperty = 'scale(0, 1)';
+ } else if (config.axis === 'y') {
+ scaleProperty = 'scale(1, 0)';
+ }
+
this._effect = new KeyframeEffect(node, [
- {'transform': 'scale(0)'},
- {'transform': 'scale(1)'}
+ {'transform': scaleProperty},
+ {'transform': 'scale(1, 1)'}
], this.timingFromConfig(config));
return this._effect;

Powered by Google App Engine
This is Rietveld 408576698