Update animation time.