Stop the previous animation before starting a new one.