I made a shooting start animation with an infinite value. What I want next is after the animation played, it has a 10 second delay and starts the animation again. But since I put an infinite value in the animation code, it doesn't have a break time and start rights away when the animation ends.
How can I change it to have a break time before it starts again?
#shooting_star { position: absolute;
height: 1px;
background: linear-gradient(-45deg, rgb(177 177 177), rgb(27 27 27));
width: 146px;
top: -25%;
left: 63%;
animation:shootingw 2s ease-in-out infinite,
shootingr 2s ease-in-out infinite;
transform: rotate(90deg);}
@keyframes shootingw {
0% {
width:0;
}
30% {
width:146px;
}
100% {
width:0;
}
}
@keyframes shootingr {
0% {
transform: translateX(0);
}
100% {
transform: translateX(300px);
}
}