Play the animation forwards first, then backwards:
Note: The animation-direction property is not supported in Internet Explorer 9 and earlier versions.