You need a FIFTH property to
animation:
which specifies a repeat count for the animation. the default is 1. Read up on animation
here[
^]
Quoting from the link above,
"The animation property is a shorthand property for eight of the animation properties:
animation-name
animation-duration
animation-timing-function
animation-delay
animation-iteration-count
animation-direction
animation-fill-mode
animation-play-state
"
Iteration-count is the FIFTH property.