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

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

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake Created 5 years, 6 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
2 2
3 Polymer({ 3 Polymer({
4 4
5 is: 'slide-down-animation', 5 is: 'slide-down-animation',
6 6
7 behaviors: [ 7 behaviors: [
8 Polymer.NeonAnimationBehavior 8 Polymer.NeonAnimationBehavior
9 ], 9 ],
10 10
11 configure: function(config) { 11 configure: function(config) {
12 var node = config.node; 12 var node = config.node;
13 13
14 if (config.transformOrigin) { 14 if (config.transformOrigin) {
15 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin ); 15 this.setPrefixedProperty(node, 'transformOrigin', config.transformOrigin );
16 } else { 16 } else {
17 this.setPrefixedProperty(node, 'transformOrigin', '50% 0'); 17 this.setPrefixedProperty(node, 'transformOrigin', '50% 0');
18 } 18 }
19 19
20 this._effect = new KeyframeEffect(node, [ 20 this._effect = new KeyframeEffect(node, [
21 {'transform': 'translateY(-100%)'}, 21 {'transform': 'translateY(-100%)'},
22 {'transform': 'none'} 22 {'transform': 'none'}
23 ], this.timingFromConfig(config)); 23 ], this.timingFromConfig(config));
24 24
25 return this._effect; 25 return this._effect;
26 } 26 }
27 27
28 }); 28 });
29 29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698