complete callback called before the animation is over
MatBdry opened this issue · 1 comments
MatBdry commented
Hello,
I have an issue when a try to execute a method in the complete
callback (on Chrome). It seems the callback is called before the animation is over. Here is an example: https://jsfiddle.net/tvh7qc37/7/. If you open the console, you will see that the code is stopped by the debugger before the animation is over.
thank you for your help !
bendc commented
I'm not entirely sure how debugger
works as I never rely on it, but I'm pretty sure the complete
callback is always called after the animation. You can try replacing your debugger
statement with something like console.log(document.querySelector(".foreground").style.transform)
and you'll always get scale(0)
.