css animation timing fix