Changing the animation timing function.