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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/neon-animation/animations/scale-down-animation-extracted.js

Issue 1351623008: MD Settings: Languages model for language pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SingletonPrefs
Patch Set: Created 5 years, 3 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 Polymer({ 1
2 2
3 Polymer({
4
3 is: 'scale-down-animation', 5 is: 'scale-down-animation',
4 6
5 behaviors: [ 7 behaviors: [
6 Polymer.NeonAnimationBehavior 8 Polymer.NeonAnimationBehavior
7 ], 9 ],
8 10
9 configure: function(config) { 11 configure: function(config) {
10 var node = config.node; 12 var node = config.node;
11 13
12 if (config.transformOrigin) { 14 if (config.transformOrigin) {
13 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin ); 15 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin );
14 } 16 }
15 17
16 var scaleProperty = 'scale(0, 0)'; 18 var scaleProperty = 'scale(0, 0)';
17 if (config.axis === 'x') { 19 if (config.axis === 'x') {
18 scaleProperty = 'scale(0, 1)'; 20 scaleProperty = 'scale(0, 1)';
19 } else if (config.axis === 'y') { 21 } else if (config.axis === 'y') {
20 scaleProperty = 'scale(1, 0)'; 22 scaleProperty = 'scale(1, 0)';
21 } 23 }
22 24
23 this._effect = new KeyframeEffect(node, [ 25 this._effect = new KeyframeEffect(node, [
24 {'transform': 'scale(1,1)'}, 26 {'transform': 'scale(1,1)'},
25 {'transform': scaleProperty} 27 {'transform': scaleProperty}
26 ], this.timingFromConfig(config)); 28 ], this.timingFromConfig(config));
27 29
28 return this._effect; 30 return this._effect;
29 } 31 }
30 32
31 }); 33 });
34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698