Skip to content Skip to sidebar Skip to footer

@keyframes Animation Plays For The First Time Only

I've written an animation which is fired on successful completion of a backend call. Now the animation works flawlessly for the first time, but on the same page if the same backend

Solution 1:

Whenever you make the backend call, you should set the _this.flyToCollection= false;. This will remove the class upload-to-board-icon-fly from the element. And on successful completion of the backend call, you are setting it to true. This will add the class upload-to-board-icon-fly. Now the animation will start. Hope this helps.


Post a Comment for "@keyframes Animation Plays For The First Time Only"