如何禁用聚合物 1.0.纸张工具提示动画
how to disable polymer 1.0. paper-tooltip animation
我有一个纸质工具提示,工作正常。我试图禁用淡入/淡出动画,以类似于 Polymer 0.5 行为。 animationconfig 似乎被忽略了。有什么想法吗?
<paper-tooltip for="addid" position="left" animationConfig="{{tooltipAnimation}}">Tooltip text</paper-tooltip>
聚合物代码中:
ready: function() {
this.tooltipAnimation =
{"entry": [{"name": "fade-in-animation", "timing": {"delay": 1000}}],
"exit": [{"name": "fade-out-animation"}]};
应该写成-
animation-config="{{tooltipAnimation}}"
Attribute names with dashes are converted to camelCase property names
by capitalizing the character following each dash, then removing the
dashes. For example, the attribute first-name maps to firstName.
我有一个纸质工具提示,工作正常。我试图禁用淡入/淡出动画,以类似于 Polymer 0.5 行为。 animationconfig 似乎被忽略了。有什么想法吗?
<paper-tooltip for="addid" position="left" animationConfig="{{tooltipAnimation}}">Tooltip text</paper-tooltip>
聚合物代码中:
ready: function() {
this.tooltipAnimation =
{"entry": [{"name": "fade-in-animation", "timing": {"delay": 1000}}],
"exit": [{"name": "fade-out-animation"}]};
应该写成-
animation-config="{{tooltipAnimation}}"
Attribute names with dashes are converted to camelCase property names by capitalizing the character following each dash, then removing the dashes. For example, the attribute first-name maps to firstName.