Pause animations correctly using the running time