3 is: 'paper-menu-grow-height-animation',
6 Polymer.NeonAnimationBehavior
9 configure: function(config) {
10 var node = config.node;
11 var rect = node.getBoundingClientRect();
12 var height = rect.height;
14 this._effect = new KeyframeEffect(node, [{
15 height: (height / 2) + 'px'
18 }], this.timingFromConfig(config));
25 is: 'paper-menu-grow-width-animation',
28 Polymer.NeonAnimationBehavior
31 configure: function(config) {
32 var node = config.node;
33 var rect = node.getBoundingClientRect();
34 var width = rect.width;
36 this._effect = new KeyframeEffect(node, [{
37 width: (width / 2) + 'px'
40 }], this.timingFromConfig(config));
47 is: 'paper-menu-shrink-width-animation',
50 Polymer.NeonAnimationBehavior
53 configure: function(config) {
54 var node = config.node;
55 var rect = node.getBoundingClientRect();
56 var width = rect.width;
58 this._effect = new KeyframeEffect(node, [{
61 width: width - (width / 20) + 'px'
62 }], this.timingFromConfig(config));
69 is: 'paper-menu-shrink-height-animation',
72 Polymer.NeonAnimationBehavior
75 configure: function(config) {
76 var node = config.node;
77 var rect = node.getBoundingClientRect();
78 var height = rect.height;
81 this.setPrefixedProperty(node, 'transformOrigin', '0 0');
83 this._effect = new KeyframeEffect(node, [{
84 height: height + 'px',
85 transform: 'translateY(0)'
87 height: height / 2 + 'px',
88 transform: 'translateY(-20px)'
89 }], this.timingFromConfig(config));