animation-direction: alternate

The animation plays forwards first, then backwards: