0
我正在尝试在点击事件上切换<paper-fab>
的图标。但正如你所看到的,<paper-fab>
的颜色因其动画卡住而改变。我开始尝试使用requestAnimationFrame。paper-fab卡在动画中点击
代码:
this.$.editFab.icon = "save";
requestAnimationFrame(() => {
this.$.editFab.icon = "save";
});