I have this kind of animation:
.wiggle-animation {
animation: 1s wiggle-animation ease infinite;
animation-delay: 10s;
}
@keyframes wiggle-animation {
0% {
transform: rotate(-3deg);
box-shadow: 0 2px 2px #000;
}
20% {
transform: rotate(20deg);
}
40% {
transform: rotate(-15deg);
}
60% {
transform: rotate(5deg);
}
90% {
transform: rotate(-1deg);
}
100% {
transform: rotate(0);
box-shadow: 0 2px 2px rgba(0,0,0,.2);
}
}
I want this animation to trigger every 10 seconds. I have tried animation-delay but it does not work. Can you tell me what am I doing wrong?