Fix CSS animation not to loop.