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

Unified Diff: third_party/polymer/v1_0/components-chromium/neon-animation/animations/scale-up-animation-extracted.js

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-chromium/neon-animation/animations/scale-up-animation-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/neon-animation/animations/scale-up-animation-extracted.js b/third_party/polymer/v1_0/components-chromium/neon-animation/animations/scale-up-animation-extracted.js
index a63aad6ba0dc92fcf11453905fb6fcf18100df6e..c94708c1faeaf217d9e7fb73c5f2757519fc1c20 100644
--- a/third_party/polymer/v1_0/components-chromium/neon-animation/animations/scale-up-animation-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/neon-animation/animations/scale-up-animation-extracted.js
@@ -15,9 +15,16 @@
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