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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-menu-button/paper-menu-button-animations-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 1 Polymer({
2 Polymer({
3 is: 'paper-menu-grow-height-animation', 2 is: 'paper-menu-grow-height-animation',
4 3
5 behaviors: [ 4 behaviors: [
6 Polymer.NeonAnimationBehavior 5 Polymer.NeonAnimationBehavior
7 ], 6 ],
8 7
9 configure: function(config) { 8 configure: function(config) {
10 var node = config.node; 9 var node = config.node;
11 var rect = node.getBoundingClientRect(); 10 var rect = node.getBoundingClientRect();
12 var height = rect.height; 11 var height = rect.height;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 this._effect = new KeyframeEffect(node, [{ 82 this._effect = new KeyframeEffect(node, [{
84 height: height + 'px', 83 height: height + 'px',
85 transform: 'translateY(0)' 84 transform: 'translateY(0)'
86 }, { 85 }, {
87 height: height / 2 + 'px', 86 height: height / 2 + 'px',
88 transform: 'translateY(-20px)' 87 transform: 'translateY(-20px)'
89 }], this.timingFromConfig(config)); 88 }], this.timingFromConfig(config));
90 89
91 return this._effect; 90 return this._effect;
92 } 91 }
93 }); 92 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698