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

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

Issue 1162963002: Revert "Rename polymer and cr_elements v0_8 to v1_0" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/hero-animation-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/neon-animation/animations/hero-animation-extracted.js b/third_party/polymer/v1_0/components-chromium/neon-animation/animations/hero-animation-extracted.js
deleted file mode 100644
index 501d61e8da6d278d3c748ee4bf2892fce93ec400..0000000000000000000000000000000000000000
--- a/third_party/polymer/v1_0/components-chromium/neon-animation/animations/hero-animation-extracted.js
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
- Polymer({
-
- is: 'hero-animation',
-
- behaviors: [
- Polymer.NeonSharedElementAnimationBehavior
- ],
-
- configure: function(config) {
- var shared = this.findSharedElements(config);
- if (!shared) {
- return null;
- }
-
- var fromRect = shared.from.getBoundingClientRect();
- var toRect = shared.to.getBoundingClientRect();
-
- var deltaLeft = fromRect.left - toRect.left;
- var deltaTop = fromRect.top - toRect.top;
- var deltaWidth = fromRect.width / toRect.width;
- var deltaHeight = fromRect.height / toRect.height;
-
- this.setPrefixedProperty(shared.to, 'transformOrigin', '0 0');
- shared.to.style.zIndex = 10000;
- shared.from.style.visibility = 'hidden';
-
- this._effect = new KeyframeEffect(shared.to, [
- {'transform': 'translate(' + deltaLeft + 'px,' + deltaTop + 'px) scale(' + deltaWidth + ',' + deltaHeight + ')'},
- {'transform': 'none'}
- ], this.timingFromConfig(config));
-
- return this._effect;
- },
-
- complete: function(config) {
- var shared = this.findSharedElements(config);
- if (!shared) {
- return null;
- }
- shared.to.style.zIndex = '';
- shared.from.style.visibility = '';
- }
-
- });
-

Powered by Google App Engine
This is Rietveld 408576698