What is the best way to properly destroy the DOM element after an animation has finished playing?
I saw a .then method in the API but doesn't seem to be doing anything.
Sorry if this was asked before, or if there's already something in the API, I couldn't find anything 😩
What is the best way to properly destroy the DOM element after an animation has finished playing?
I saw a .then method in the API but doesn't seem to be doing anything.
Sorry if this was asked before, or if there's already something in the API, I couldn't find anything 😩