I am trying to make an HTML button spin in a specific pattern. The button should start spinning after 5 seconds, then rotate for 2 seconds, stop for 5 seconds, and repeat this pattern indefinitely. I have searched for solutions but haven't found one that fits my requirements. Here is the code I currently have, with a rotation speed of 400ms:
#register_event{
animation: wiggle 400ms infinite;
}
@keyframes wiggle{
0%{
transform: rotateZ(0);
}
50%{
transform: rotateZ(-10deg);
}
100%{
transform: rotateZ(10deg);
}