To allow an animation to be re-applied to an element, the animation must first be
removed from that elements style (which CssAnimation performs in the animationEnd
listener). This has the side-effect of rendering the fill modes useless. Therefore
have implemented a persist flag instead which will apply the final keyframe (or
start keyframe in the case of alternating with an even iteration count) directly
to the styles of the element.