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