fix($animator): avoid completing the animation asynchronously unless CSS transtiions/animations are present

Closes #4023
Closes #3940