You do need to use animation-fill-mode:forwards as Fabio suggests, but this only works for properties set in the animation. In order to set properties other than the ones you want actually animated, you must make them part of the animation by adding them to the very end like so: