Fix animations to be less jerky.