I have multi animations, I want to execute my code after all animations are done.
The problem with this code, that it's executed after the first animation done, and not waiting for all animations to be done.
any solution ?
<style>
.userClass {
animation: show 7s 6s forwards,zoom 8s 6s forwards,hide 5s 13s forwards;}
@@-webkit-keyframes show{
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@@-webkit-keyframes zoom{
//
}
@@-webkit-keyframes hide{
//
}
</style>
<div class="userClass" id="user"></div>
<script>
$(document).ready(function () {
$("#user").bind("animationend", function () {
setTimeout(function () {
//I want to execute code here
}, 3000);
});
});
</script>