0
我正在嘗試在點擊事件上切換<paper-fab>
的圖標。但正如你所看到的,<paper-fab>
的顏色因其動畫卡住而改變。我開始嘗試使用requestAnimationFrame。paper-fab卡在動畫中點擊
代碼:
this.$.editFab.icon = "save";
requestAnimationFrame(() => {
this.$.editFab.icon = "save";
});