The animation-direction property defines whether an animation should play in reverse direction or in alternate cycles.
animation-direction: normal|reverse|alternate|alternate-reverse|initial|inherit;
div { -webkit-animation-direction: alternate; /* Chrome, Safari, Opera */ animation-direction: alternate;}