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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/neon-animation/animations/slide-right-animation-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 2
3 Polymer({
4
5 is: 'slide-right-animation', 3 is: 'slide-right-animation',
6 4
7 behaviors: [ 5 behaviors: [
8 Polymer.NeonAnimationBehavior 6 Polymer.NeonAnimationBehavior
9 ], 7 ],
10 8
11 configure: function(config) { 9 configure: function(config) {
12 var node = config.node; 10 var node = config.node;
13 11
14 if (config.transformOrigin) { 12 if (config.transformOrigin) {
15 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin ); 13 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin );
16 } else { 14 } else {
17 this.setPrefixedProperty(node, 'transformOrigin', '0 50%'); 15 this.setPrefixedProperty(node, 'transformOrigin', '0 50%');
18 } 16 }
19 17
20 this._effect = new KeyframeEffect(node, [ 18 this._effect = new KeyframeEffect(node, [
21 {'transform': 'none'}, 19 {'transform': 'none'},
22 {'transform': 'translateX(100%)'} 20 {'transform': 'translateX(100%)'}
23 ], this.timingFromConfig(config)); 21 ], this.timingFromConfig(config));
24 22
25 return this._effect; 23 return this._effect;
26 } 24 }
27 25
28 }); 26 });
29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698