Why does animation-delay not works properly in between each animation? For example between each animation iteration I want to have a little pause. How can I get around this issue?
.fa-shake {
animation-name: fa-shake;
animation-duration: 1s;
animation-timing-function: linear;
animation-direction: normal;
animation-delay: 1s;
animation-iteration-count: infinite;
width:150px;
height: auto;
}
@keyframes fa-shake {
0%,
100% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
10%,
30%,
50%,
70%,
90% {
-webkit-transform: rotate(10deg);
transform: rotate(10deg);
}
20%,
40%,
60%,
80% {
-webkit-transform: rotate(-20deg);
transform: rotate(-20deg);
}
}
<img class="fa-shake" src="https://parspng.com/wp-content/uploads/2022/03/telephonepng.parspng.com-2-600x643.png">