How does animationend monitor one of two animations?

problem description

my two CSS animation animations are written in shorthand once, the animated move ends in 5s, and the animated go is innumerable loops.
what I want to achieve is that when the animation move ends, it stays at the last frame, and then the go stops playing in a loop.
if you are listening with end events, it should be triggered countless times, because the time interval for go to play is only 0.5s.
could you tell me how to solve this problem?

related codes

animation: move 8s 1s linear forwards, go 1s 0s linear infinite;
The parameters of the

callback function have animation property names.

Menu