How can i start one keyframes animation after other one finished?
#myDiv {
position: relative;
width: 100px;
height: 100px;
border: 1px solid;
animation-name: animation1;
animation-duration: 2s;
animation-fill-mode: forwards;
}
@keyframes animation1 {
0% {left: 100px}
100% {left: 200px}
}
@keyframes animation2 {
0% {top: 100px}
100% {top: 200px}
}
<div id="myDiv"></div>
I want to animation2 start after animation1 finished. I dont want to divide one animation like 0%,50%,100% or use other animation's animation duration. I want to get animation finished information and use it. I don't want to use delay. Is it possible?