You can use
Promise
to handling end of animation.
This
Promise
feature is tested on native and
core-js
.
run